]> err.no Git - linux-2.6/commit
RDMA/cma: Add check to validate that cm_id is bound to a device
authorSean Hefty <sean.hefty@intel.com>
Mon, 7 May 2007 18:49:27 +0000 (11:49 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 14 May 2007 21:10:32 +0000 (14:10 -0700)
commit6c719f5c6c823901fac2d46b83db5a69ba7e9152
treeb85bcb8ee9d6064fbde7bd34294e8a91d76a6bc7
parentbe65f086f2a50c478b2f5ecf4c55a52a4e95059a
RDMA/cma: Add check to validate that cm_id is bound to a device

Several checks in the rdma_cm check against the state of the
cm_id, but only to validate that the cm_id is bound to an underlying
transport specific CM and an RDMA device.  Make the check explicit
in what we're trying to check for, since we're not synchronizing
against the cm_id state.

This will allow a user to disconnect a cm_id or reject a connection
after receiving a device removal event.

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