From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:50166 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbdFAWKe (ORCPT ); Thu, 1 Jun 2017 18:10:34 -0400 Message-ID: <1496355032.7171.58.camel@redhat.com> Subject: Re: [PATCH V2] IB/srp: Fix NULL deref at srp_destroy_qp() From: Doug Ledford To: Israel Rukshin , linux-rdma Cc: Bart Van Assche , Max Gurtovoy , stable@vger.kernel.org Date: Thu, 01 Jun 2017 18:10:32 -0400 In-Reply-To: <1494517956-26669-1-git-send-email-israelr@mellanox.com> References: <1494517956-26669-1-git-send-email-israelr@mellanox.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: On Thu, 2017-05-11 at 18:52 +0300, Israel Rukshin wrote: > 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: 9294000d6d89 ("IB/srp: Drain the send queue before destroying > a QP") > Signed-off-by: Israel Rukshin > Reviewed-by: Max Gurtovoy > Cc: Thanks, applied. -- Doug Ledford     GPG KeyID: B826A3330E572FDD     Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD