[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170903.105732.1712307481321249919.davem@davemloft.net>
Date: Sun, 03 Sep 2017 10:57:32 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: tariqt@...lanox.com, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] net/mlx4_core: fix memory leaks on error exit
path
From: Colin King <colin.king@...onical.com>
Date: Thu, 31 Aug 2017 17:30:53 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> The structures hca_param and func_cap are not being kfree'd on an error
> exit path causing two memory leaks. Fix this by jumping to the existing
> free memory error exit path.
>
> Detected by CoverityScan, CID#1455219, CID#1455224 ("Resource Leak")
>
> Fixes: c73c8b1e47ca ("net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied.
Powered by blists - more mailing lists