linux-uconsole/drivers/scsi/libfc
Colin Ian King 8ce259e5b0 scsi: libfc: fix null pointer dereference on a null lport
[ Upstream commit 41a6bf6529 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:01 +01:00
..
fc_disc.c scsi: libfc: hold disc_mutex in fc_disc_stop_rports() 2018-07-12 23:01:16 -04:00
fc_elsct.c
fc_exch.c scsi: libfc: fix null pointer dereference on a null lport 2020-01-27 14:51:01 +01:00
fc_fcp.c
fc_frame.c
fc_libfc.c
fc_libfc.h
fc_lport.c scsi: libfc: free skb when receiving invalid flogi resp 2019-03-13 14:02:30 -07:00
fc_npiv.c
fc_rport.c scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure 2019-08-09 17:52:27 +02:00
Makefile