linux_dsm_epyc7002/drivers/infiniband/hw/hns
Colin Ian King 5b59a3969e IB/hns: fix memory leak on ah on error return path
When dmac is NULL, ah is not being freed on the error return path. Fix
this by kfree'ing it.

Detected by CoverityScan, CID#1452636 ("Resource Leak")

Fixes: d8966fcd4c ("IB/core: Use rdma_ah_attr accessor functions")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-08-16 11:30:33 -04:00
..
hns_roce_ah.c IB/hns: fix memory leak on ah on error return path 2017-08-16 11:30:33 -04:00
hns_roce_alloc.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_cmd.c IB/hns: Use kmalloc_array() in hns_roce_cmd_use_events() 2017-04-20 16:31:49 -04:00
hns_roce_cmd.h IB/hns: Fix the bug when free mr 2016-12-03 14:20:42 -05:00
hns_roce_common.h IB/hns: Fix the bug when free cq 2016-12-03 14:20:42 -05:00
hns_roce_cq.c IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
hns_roce_device.h IB/core: Rename struct ib_ah_attr to rdma_ah_attr 2017-05-01 14:32:43 -04:00
hns_roce_eq.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_hem.h IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hw_v1.c IB/hns: checking for IS_ERR() instead of NULL 2017-08-04 15:09:56 -04:00
hns_roce_hw_v1.h IB/hns: Fix the bug when free mr 2016-12-03 14:20:42 -05:00
hns_roce_main.c IB/hns: Fix the bug with modifying the MAC address without removing the driver 2017-07-17 21:21:29 -04:00
hns_roce_mr.c scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
hns_roce_pd.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_qp.c IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
Kconfig IB/hns: Kconfig and Makefile for RoCE module 2016-08-22 14:02:33 -04:00
Makefile IB/hns: Kconfig and Makefile for RoCE module 2016-08-22 14:02:33 -04:00