]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/nes: Fix crash when listener destroyed during loopback setup
authorFaisal Latif <faisal.latif@intel.com>
Fri, 12 Feb 2010 19:57:04 +0000 (19:57 +0000)
committerRoland Dreier <rolandd@cisco.com>
Fri, 19 Feb 2010 19:38:27 +0000 (11:38 -0800)
commit5fa985d7160b08f6044dd3862576bbeb62ce5e68
tree2f2979f0bfbac6873768ead95d88e2861e9a568e
parentabd189fc4df7a6771687f0f2c83650f91795c71f
RDMA/nes: Fix crash when listener destroyed during loopback setup

When a listener is destroyed and there is an MPA response pending for
loopback connection, the active side cm_node gets destroyed twice:
once in cm_event_connect_error() and again in nes_accept()/nes_reject().

Increment the cm_node's refcount so it's not destroyed by
cm_event_connect_error().

Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c