|
@@ -1016,6 +1016,9 @@ qla2x00_dev_loss_tmo_callbk(struct fc_rport *rport)
|
|
|
struct Scsi_Host *host = rport_to_shost(rport);
|
|
|
fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
|
|
|
|
|
|
+ if (!fcport)
|
|
|
+ return;
|
|
|
+
|
|
|
qla2x00_abort_fcport_cmds(fcport);
|
|
|
|
|
|
/*
|
|
@@ -1033,6 +1036,9 @@ qla2x00_terminate_rport_io(struct fc_rport *rport)
|
|
|
{
|
|
|
fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
|
|
|
|
|
|
+ if (!fcport)
|
|
|
+ return;
|
|
|
+
|
|
|
/*
|
|
|
* At this point all fcport's software-states are cleared. Perform any
|
|
|
* final cleanup of firmware resources (PCBs and XCBs).
|