linux/drivers/scsi/libfc
Colin Ian King 41a6bf6529 scsi: libfc: fix null pointer dereference on a null lport
Currently if lport is null then the null lport pointer is dereference when
printing out debug via the FC_LPORT_DB macro. Fix this by using the more
generic FC_LIBFC_DBG debug macro instead that does not use lport.

Addresses-Coverity: ("Dereference after null check")
Fixes: 7414705ea4 ("libfc: Add runtime debugging with debug_logging module parameter")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-07-16 22:32:24 -04:00
..
fc_disc.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_elsct.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_exch.c scsi: libfc: fix null pointer dereference on a null lport 2019-07-16 22:32:24 -04:00
fc_fcp.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_frame.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_libfc.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_libfc.h scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_lport.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_npiv.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
fc_rport.c scsi: libfc: switch to SPDX tags 2019-05-21 06:16:22 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00