Home Home > GIT Browse > SLE12-SP3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2018-07-03 12:37:52 +0200
committerHannes Reinecke <hare@suse.de>2018-07-03 12:38:05 +0200
commite21eeec02cbd582fe16a75980c75589db6181169 (patch)
treea0e43809ffa2f156045657fa67e89164eaaf314f
parent824dbdd3af61c36137ee169e13a3678eea8bf3b6 (diff)
qla2xxx: Fix NULL pointer derefrence for fcport search
(bsc#1085657). suse-commit: ea852d1d20b491f02c7b29c08507362e778bd66c
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index d3b61c26a5e6..cc5dda4c38e0 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -604,12 +604,14 @@ static void qla24xx_handle_gnl_done_event(scsi_qla_host_t *vha,
conflict_fcport =
qla2x00_find_fcport_by_wwpn(vha,
e->port_name, 0);
- ql_dbg(ql_dbg_disc, vha, 0x20e6,
- "%s %d %8phC post del sess\n",
- __func__, __LINE__,
- conflict_fcport->port_name);
- qlt_schedule_sess_for_deletion
- (conflict_fcport);
+ if (conflict_fcport) {
+ qlt_schedule_sess_for_deletion
+ (conflict_fcport);
+ ql_dbg(ql_dbg_disc, vha, 0x20e6,
+ "%s %d %8phC post del sess\n",
+ __func__, __LINE__,
+ conflict_fcport->port_name);
+ }
}
/* FW already picked this loop id for another fcport */