lkml.org 
[lkml]   [2022]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] RDMA/mlx5: no need to kfree NULL pointer
Date
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@kernel.org>

\
 
 \ /
  Last update: 2022-12-04 14:35    [W:0.033 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site