linux/drivers/infiniband
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
..
core RDMA/core: Fix spelling mistake "Could't" -> "Couldn't" 2020-08-20 08:31:41 -03:00
hw RDMA/bnxt_re: Remove the qp from list only if the qp destroy succeeds 2020-08-27 09:30:44 -03:00
sw RDMA/rxe: Fix panic when calling kmem_cache_create() 2020-08-27 09:14:41 -03:00
ulp RDMA/rtrs-srv: Replace device_register with device_initialize and device_add 2020-08-24 13:44:53 -03:00
Kconfig IB/uverbs: Enable CQ ioctl commands by default 2020-07-06 19:50:33 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00