Messages in this thread | | | Date | Mon, 19 Aug 2019 14:56:23 +0300 | From | Leon Romanovsky <> | Subject | Re: [PATCH] IB/mlx4: Fix memory leaks |
| |
On Sun, Aug 18, 2019 at 03:23:01PM -0500, Wenwen Wang wrote: > 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> > --- > drivers/infiniband/hw/mlx4/mad.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >
Thanks, Acked-by: Leon Romanovsky <leonro@mellanox.com>
| |