lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170920124713.5A68B60725@smtp.codeaurora.org>
Date:   Wed, 20 Sep 2017 12:47:13 +0000 (UTC)
From:   Kalle Valo <kvalo@...eaurora.org>
To:     Himanshu Jha <himanshujha199640@...il.com>
Cc:     amitkarwar@...il.com, nishants@...vell.com, gbhat@...vell.com,
        huxm@...vell.com, linux-wireless@...r.kernel.org,
        netdev@...r.kernel.org, Himanshu Jha <himanshujha199640@...il.com>
Subject: Re: mwifiex: remove unnecessary call to memset

Himanshu Jha <himanshujha199640@...il.com> wrote:

> call to memset to assign 0 value immediately after allocating
> memory with kzalloc is unnecesaary as kzalloc allocates the memory
> filled with 0 value.
> 
> Semantic patch used to resolve this issue:
> 
> @@
> expression e,e2; constant c;
> statement S;
> @@
> 
>   e = kzalloc(e2, c);
>   if(e == NULL) S
> - memset(e, 0, e2);
> 
> Signed-off-by: Himanshu Jha <himanshujha199640@...il.com>

Patch applied to wireless-drivers-next.git, thanks.

85dafc129196 mwifiex: remove unnecessary call to memset

-- 
https://patchwork.kernel.org/patch/9947331/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ