]> git.karo-electronics.de Git - linux-beck.git/commit
RDMA/iw_cxgb4: stop ep timer on close failure
authorHariprasad S <hariprasad@chelsio.com>
Wed, 4 May 2016 19:57:30 +0000 (01:27 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 5 May 2016 20:11:14 +0000 (16:11 -0400)
commit88bc230dc614b8e19000022d0ae2c1dfd578a0b0
tree303014b1535bc83ae3696f3ff2689b2f70e9a745
parent9dec900c20d95ef1f3c40bc5d5901499f5d63381
RDMA/iw_cxgb4: stop ep timer on close failure

In c4iw_ep_disconnect(), if we start the ep timer to begin a close,
but send_halfclose() fails, we need to stop the timer and send a CLOSE
event up to the IWCM before releasing the resources. Otherwise, we can
crash when the ep timer fires if the ep is referencing a previous instance
of the device. This can happen as part of adapter reset/recovery, for
instance.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c