We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b2b70 commit 73578afCopy full SHA for 73578af
drivers/scsi/qedf/qedf_main.c
@@ -536,7 +536,9 @@ static void qedf_update_link_speed(struct qedf_ctx *qedf,
536
if (linkmode_intersects(link->supported_caps, sup_caps))
537
lport->link_supported_speeds |= FC_PORTSPEED_20GBIT;
538
539
- fc_host_supported_speeds(lport->host) = lport->link_supported_speeds;
+ if (lport->host && lport->host->shost_data)
540
+ fc_host_supported_speeds(lport->host) =
541
+ lport->link_supported_speeds;
542
}
543
544
static void qedf_bw_update(void *dev)
0 commit comments