IB/srpt: Rework srpt_disconnect_ch_sync()
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 17 Jan 2018 00:14:06 +0000 (16:14 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:23 +0000 (14:49 -0500)
commit4413834452a65dd322aeeb8da3b4da58b3daa73b
treec8933c1babd8753f5d56b58e56e0d16024667d89
parent795bc112cd5a40e7612313f54ee527198b1e734f
IB/srpt: Rework srpt_disconnect_ch_sync()

This patch fixes a use-after-free issue for ch->release_done when
running the SRP protocol on top of the rdma_rxe driver.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/infiniband/ulp/srpt/ib_srpt.h