]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_re: Fix couple of memory leaks that could lead to IOMMU call traces
authorSomnath Kotur <somnath.kotur@broadcom.com>
Wed, 5 Sep 2018 07:50:34 +0000 (13:20 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 5 Sep 2018 22:08:41 +0000 (16:08 -0600)
commitf51bd15443f686f15132359f92efda05578f4e7b
tree269428453e6e03967554047056acf8d578cd4115
parentd13dee707accf0dfea97b6180e8bcf8b49df1233
bnxt_re: Fix couple of memory leaks that could lead to IOMMU call traces

1. DMA-able memory allocated for Shadow QP was not being freed.
2. bnxt_qplib_alloc_qp_hdr_buf() had a bug wherein the SQ pointer was
   erroneously pointing to the RQ. But since the corresponding
   free_qp_hdr_buf() was correct, memory being free was less than what was
   allocated.

Fixes: 3ce80b7901f8 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c