Thread (1 message) 1 message, 1 author, 2023-10-13

Re: [PATCH] scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup

From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2023-10-13 18:06:34
Also in: linux-scsi, lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help