Search Linux Wireless

Re: [PATCH] crda: don't memset ctx before releasing members

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

On 25/06/2020 00:12, Antonio Quartulli wrote:
> reglib_free_regdb_ctx() is currently memsetting the passed context to
> all 0s and then attempts to unmap/release its members.
> 
> Obviouly this can't work, because after the memset() all ctx's members
> will not be useful anymore. Attempting to release them may actually lead
> to crashes. Even if no crash should happen, this operation will still
> result in memleaks.
> 
> Fix this issue by removing the memset() at all, thus leaving the members
> intact so that they can be properly released.
> 
> Signed-off-by: Kelvin Chui <kelvin.chui@xxxxxxxxx>
> Signed-off-by: Antonio Quartulli <a@xxxxxxxxxxx>


Just checking if this patch is still of interest and if there is
something I could do to get it merged?

Best Regards,


-- 
Antonio Quartulli




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux