From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH] scsi: lpfc: prevent potential null pointer dereference Date: Wed, 31 May 2017 22:45:47 -0400 Message-ID: References: <20170523150928.GA24570@embeddedgus> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from userp1040.oracle.com ([156.151.31.81]:25622 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbdFACqF (ORCPT ); Wed, 31 May 2017 22:46:05 -0400 In-Reply-To: <20170523150928.GA24570@embeddedgus> (Gustavo A. R. Silva's message of "Tue, 23 May 2017 10:09:28 -0500") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Gustavo A. R. Silva" Cc: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Gustavo A., > Null check at line 966: if (ndlp) {, implies that ndlp might be NULL. > Functions lpfc_nlp_set_state() and lpfc_issue_els_prli() dereference > pointer ndlp. Include these function calls inside the IF block that > tests pointer ndlp. Applied to 4.12/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering