]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: IB: Destroy rdma_cm_id when unloading module
authorAvinash Repaka <avinash.repaka@oracle.com>
Fri, 21 Oct 2016 22:34:19 +0000 (15:34 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:29:39 +0000 (21:29 -0700)
commitfd4c0db89e94f936e2603e175611f34d0ffa4bb1
treedb531ec096a6ab0e3a1d2a78275b33ae41264080
parent2198b5347fa01fb24a991d93d940d21e4cc37105
RDS: IB: Destroy rdma_cm_id when unloading module

rdma_cm_id is not being destroyed as part of module_exit(). This would
lead to memory corruption and eventual node crash if rds_rdma module is
unloaded.

To avoid this, stop listening(destroy rdma_cm_id) as the first step of
unloading the module and curb any more connection attempts.

This undoes the change made by commit 4d4692145bf7 ("RDS: Drop stale
iWARP support")

Orabug: 26089296

Signed-off-by: Avinash Repaka <avinash.repaka@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
net/rds/rdma_transport.c