Files
linux/drivers
Wenwen Wang 2481742320 IB/mlx4: Fix memory leaks
[ Upstream commit 5c1baaa82c ]

In mlx4_ib_alloc_pv_bufs(), 'tun_qp->tx_ring' is allocated through
kcalloc(). However, it is not always deallocated in the following execution
if an error occurs, leading to memory leaks. To fix this issue, free
'tun_qp->tx_ring' whenever an error occurs.

Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/1566159781-4642-1-git-send-email-wenwen@cs.uga.edu
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-10 10:32:17 +01:00
..
2019-09-06 10:20:44 +02:00
2018-12-21 14:13:14 +01:00
2019-05-14 19:18:42 +02:00
2019-09-10 10:32:17 +01:00
2019-07-31 07:28:24 +02:00
2018-12-21 14:13:13 +01:00
2018-11-13 11:15:11 -08:00
2018-10-03 17:00:46 -07:00
2019-05-31 06:47:21 -07:00