Skip to content
Commit 95c2ef50 authored by Israel Rukshin's avatar Israel Rukshin Committed by Doug Ledford
Browse files

RDMA/srp: Fix NULL deref at srp_destroy_qp()

If srp_init_qp() fails at srp_create_ch_ib() then ch->send_cq
may be NULL.
Calling directly to ib_destroy_qp() is sufficient because
no work requests were posted on the created qp.

Fixes: 9294000d

 ("IB/srp: Drain the send queue before destroying a QP")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarIsrael Rukshin <israelr@mellanox.com>
Reviewed-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: default avatarBart van Assche <bart.vanassche@sandisk.com&gt;-->
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 0a1a9726
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment