RDMA/cma: Protect against adding device during destruction
authorSean Hefty <sean.hefty@intel.com>
Fri, 1 Sep 2006 22:33:55 +0000 (15:33 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:49 +0000 (15:22 -0700)
commit61a73c708f37295892176bc911b178278df6a091
treecaa11f34a88a687f6699373f24bd93733b048f10
parentf94b533d091a42da92d908eb7b3f9ade1923f90d
RDMA/cma: Protect against adding device during destruction

Closes a window where address resolution can attach an rdma_cm_id to a
device during destruction of the rdma_cm_id.  This can result in the
rdma_cm_id remaining in the device list after its memory has been
freed.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c