linux/drivers/infiniband/hw
Selvin Xavier 097a9d23b7 RDMA/bnxt_re: Remove the qp from list only if the qp destroy succeeds
Driver crashes when destroy_qp is re-tried because of an error
returned. This is because the qp entry was removed from the qp list during
the first call.

Remove qp from the list only if destroy_qp returns success.

The driver will still trigger a WARN_ON due to the memory leaking, but at
least it isn't corrupting memory too.

Fixes: 8dae419f9e ("RDMA/bnxt_re: Refactor queue pair creation code")
Link: https://lore.kernel.org/r/1598292876-26529-2-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-08-27 09:30:44 -03:00
..
bnxt_re RDMA/bnxt_re: Remove the qp from list only if the qp destroy succeeds 2020-08-27 09:30:44 -03:00
cxgb4 RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
efa RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
hfi1 RDMA/hfi1: Correct an interlock issue for TID RDMA WRITE request 2020-08-20 08:31:41 -03:00
hns Revert "RDMA/hns: Reserve one sge in order to avoid local length error" 2020-08-20 08:35:19 -03:00
i40iw RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
mlx4 RDMA/mlx4: Read pkey table length instead of hardcoded value 2020-08-27 09:17:05 -03:00
mlx5 RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
mthca treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
ocrdma RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
qedr RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
qib treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
usnic RDMA/usnic: Fix spelling mistake "transistion" -> "transition" 2020-08-18 13:18:53 -03:00
vmw_pvrdma RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00