]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iw_cxgb4: block module unload until all ep resources are released
authorSteve Wise <swise@opengridcomputing.com>
Thu, 1 Sep 2016 13:44:52 +0000 (06:44 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Sun, 4 Sep 2016 07:00:53 +0000 (10:00 +0300)
commit37eb816c0867b1b0db273d22b530780a0a083980
tree449dbb5e7f983af2ce20207a6fa4db4decc233df
parent609e941a6bcd7ceb1cbb561941c997f6465e8698
iw_cxgb4: block module unload until all ep resources are released

Otherwise an endpoint can be still closing down causing a touch
after free crash.  Also WARN_ON if ulps have failed to destroy
various resources during device removal.

Fixes: ad61a4c7a9b7 ("iw_cxgb4: don't block in destroy_qp awaiting the last deref")
Reviewed-by: Sagi Grimberg <sagi@grimbrg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/infiniband/hw/cxgb4/cm.c
drivers/infiniband/hw/cxgb4/device.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h