OpenCloudOS-Kernel/drivers/infiniband/hw/mlx4
Wenwen Wang 5c1baaa82c 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>
2019-08-20 13:44:45 -04:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ah.c RDMA: Introduce and use GID attr helper to read RoCE L2 fields 2019-05-03 11:10:02 -03:00
alias_GUID.c timekeeping: Use proper clock specifier names in functions 2019-06-22 12:11:27 +02:00
cm.c mlx4: Convert pv_id_table to XArray 2019-03-26 10:09:54 -03:00
cq.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
doorbell.c IB: Pass only ib_udata in function prototypes 2019-04-01 15:00:47 -03:00
mad.c IB/mlx4: Fix memory leaks 2019-08-20 13:44:45 -04:00
main.c RDMA: Convert CQ allocations to be under core responsibility 2019-06-11 16:39:49 -04:00
mcg.c IB/mlx4: Remove unnecessary parentheses 2018-09-21 12:00:50 -04:00
mlx4_ib.h RDMA: Convert destroy_wq to be void 2019-06-20 14:37:02 -04:00
mr.c IB/mlx4: Delete unused func arg 2019-05-21 15:27:25 -03:00
qp.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
srq.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
sysfs.c mlx4: Use snprintf instead of complicated strcpy 2018-12-06 20:23:06 -07:00