diff options
| author | Colin Ian King <colin.king@canonical.com> | 2019-07-02 10:18:35 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-29 10:21:45 +0100 |
| commit | 8b87ccd33657a5c3a30b0abf348b0d19b9256627 (patch) | |
| tree | 625a04bc24210c70ce4f6d4ce851f85814346fc9 /scripts/stackusage | |
| parent | b669c3d684d5a45279f2b712e0ddc8a27b69c2a5 (diff) | |
scsi: libfc: fix null pointer dereference on a null lport
[ Upstream commit 41a6bf6529edd10a6def42e3b2c34a7474bcc2f5 ]
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: 7414705ea4ae ("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>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
