]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/nes: Abnormal listener exit causes loopback node crash
authorFaisal Latif <faisal.latif@intel.com>
Wed, 9 Dec 2009 23:54:14 +0000 (15:54 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 9 Dec 2009 23:54:14 +0000 (15:54 -0800)
commite7c05a03dc6026fb402f6ffc6c9a76ff68b5db10
tree22b2c03874a49781f9c9681aad807d75b572c316
parent3d1ac24ad0a8c306f23176fc894f46d2cef26770
RDMA/nes: Abnormal listener exit causes loopback node crash

When the listener is destroyed for a loopback connection, the listener
node gets a reset event.  This causes a crash as the listener is not
expecting a reset event.  Code review of cm_event_reset() during
debugging showed the cm_id ref count is incremented after calling its
event handler and not before.

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