From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa6.hgst.iphmx.com ([216.71.154.45]:1339 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933680AbdEKQGP (ORCPT ); Thu, 11 May 2017 12:06:15 -0400 From: Bart Van Assche To: "israelr@mellanox.com" , "linux-rdma@vger.kernel.org" CC: "maxg@mellanox.com" , "stable@vger.kernel.org" Subject: Re: [PATCH V2] IB/srp: Fix NULL deref at srp_destroy_qp() Date: Thu, 11 May 2017 16:06:03 +0000 Message-ID: <1494518760.4024.1.camel@sandisk.com> References: <1494517956-26669-1-git-send-email-israelr@mellanox.com> In-Reply-To: <1494517956-26669-1-git-send-email-israelr@mellanox.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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. Reviewed-by: Bart van Assche =