linux/drivers/infiniband
Lijun Ou f2bab3ed45 RDMA/hns: Prevent memory leaks of eq->buf_list
[ Upstream commit b681a05299 ]

eq->buf_list->buf and eq->buf_list should also be freed when eqe_hop_num
is set to 0, or there will be memory leaks.

Fixes: a5073d6054 ("RDMA/hns: Add eq support of hip08")
Link: https://lore.kernel.org/r/1572072995-11277-3-git-send-email-liweihang@hisilicon.com
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-12 19:21:10 +01:00
..
core RDMA/uverbs: Prevent potential underflow 2019-11-12 19:20:58 +01:00
hw RDMA/hns: Prevent memory leaks of eq->buf_list 2019-11-12 19:21:10 +01:00
sw RDMA/rxe: Fill in wc byte_len with IB_WC_RECV_RDMA_WITH_IMM 2019-07-31 07:27:07 +02:00
ulp RDMA/srp: Accept again source addresses that do not have a port number 2019-09-16 08:22:19 +02:00
Kconfig IB/ucm: fix UCM link error 2018-08-21 16:56:32 -06:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00