diff options
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 9c08222e4c8b..08ad1a60cb0d 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -117,6 +117,8 @@ qla2x00_async_iocb_timeout(void *data) | |||
117 | 117 | ||
118 | switch (sp->type) { | 118 | switch (sp->type) { |
119 | case SRB_LOGIN_CMD: | 119 | case SRB_LOGIN_CMD: |
120 | if (!fcport) | ||
121 | break; | ||
120 | /* Retry as needed. */ | 122 | /* Retry as needed. */ |
121 | lio->u.logio.data[0] = MBS_COMMAND_ERROR; | 123 | lio->u.logio.data[0] = MBS_COMMAND_ERROR; |
122 | lio->u.logio.data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ? | 124 | lio->u.logio.data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ? |
@@ -130,6 +132,8 @@ qla2x00_async_iocb_timeout(void *data) | |||
130 | qla24xx_handle_plogi_done_event(fcport->vha, &ea); | 132 | qla24xx_handle_plogi_done_event(fcport->vha, &ea); |
131 | break; | 133 | break; |
132 | case SRB_LOGOUT_CMD: | 134 | case SRB_LOGOUT_CMD: |
135 | if (!fcport) | ||
136 | break; | ||
133 | qlt_logo_completion_handler(fcport, QLA_FUNCTION_TIMEOUT); | 137 | qlt_logo_completion_handler(fcport, QLA_FUNCTION_TIMEOUT); |
134 | break; | 138 | break; |
135 | case SRB_CT_PTHRU_CMD: | 139 | case SRB_CT_PTHRU_CMD: |