[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1wmvql7nb.fsf@ca-mkp.ca.oracle.com>
Date: Fri, 13 Oct 2023 14:06:08 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Wenchao Hao <haowenchao2@...wei.com>
Cc: Hannes Reinecke <hare@...e.de>,
"James E . J . Bottomley" <jejb@...ux.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
Richard Cochran <richardcochran@...il.com>,
<linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<netdev@...r.kernel.org>, <louhongxiang@...wei.com>
Subject: Re: [PATCH] scsi: libfc: Fix potential NULL pointer dereference in
fc_lport_ptp_setup
Wenchao,
> fc_lport_ptp_setup() did not check the return value of
> fc_rport_create() which is possible to return NULL which would cause a
> NULL pointer dereference. Address this issue by checking return value
> of fc_rport_create() and log error message on fc_rport_create()
> failed.
Applied to 6.7/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists