RDMA/nes: Async event for closed QP causes crash
authorFaisal Latif <faisal.latif@intel.com>
Fri, 21 May 2010 21:55:03 +0000 (16:55 -0500)
committerRoland Dreier <rolandd@cisco.com>
Tue, 25 May 2010 04:12:54 +0000 (21:12 -0700)
commitdf02902313feb1472bc6ec16e486f72b39e9d4b2
tree6cb761596855ce1c34f0314e6e4139f8a75198d0
parent39942a028c559e39495ae7b29a8dd9b0c3c03003
RDMA/nes: Async event for closed QP causes crash

Under abnormal termination, modify_qp() closes the QP, and async event
(AE) handling also attempts to close the same QP, causing a crash.
Fix this by checking the state of the QP before processing the AE.

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