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: <167016091277.37965.6806153987261665211.b4-ty@kernel.org>
Date:   Sun, 04 Dec 2022 15:35:12 +0200
From:   Leon Romanovsky <leon@...nel.org>
To:     jgg@...pe.ca, Li Zhijian <lizhijian@...itsu.com>
Cc:     linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] RDMA/mlx5: no need to kfree NULL pointer

On Sat, 3 Dec 2022 11:37:14 +0800, Li Zhijian wrote:
> Goto label 'free' where it will kfree the 'in' is not needed though
> it's safe to kfree NULL. Return err code directly to simplify the code.
> 
> 1973 free:
> 1974         kfree(in);
> 1975         return err;
> 
> [...]

Applied, thanks!

[1/1] RDMA/mlx5: no need to kfree NULL pointer
      https://git.kernel.org/rdma/rdma/c/6978837ce42f8b

Best regards,
-- 
Leon Romanovsky <leon@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ