diff options
author | Wenwen Wang <wenwen@cs.uga.edu> | 2019-08-18 15:23:01 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-08-20 13:44:45 -0400 |
commit | 5c1baaa82cea2c815a5180ded402a7cd455d1810 (patch) | |
tree | a549a0855c24e5f40643479dffddd5244de431aa /drivers/infiniband/hw/mlx5/srq_cmd.c | |
parent | RDMA/cma: fix null-ptr-deref Read in cma_cleanup (diff) | |
download | linux-dev-5c1baaa82cea2c815a5180ded402a7cd455d1810.tar.xz linux-dev-5c1baaa82cea2c815a5180ded402a7cd455d1810.zip |
IB/mlx4: Fix memory leaks
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>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/srq_cmd.c')
0 files changed, 0 insertions, 0 deletions