|
@@ -1616,7 +1616,7 @@ qla2x00_abort_all_cmds(scsi_qla_host_t *vha, int res)
|
|
|
/* Don't abort commands in adapter during EEH
|
|
|
* recovery as it's not accessible/responding.
|
|
|
*/
|
|
|
- if (!ha->flags.eeh_busy) {
|
|
|
+ if (GET_CMD_SP(sp) && !ha->flags.eeh_busy) {
|
|
|
/* Get a reference to the sp and drop the lock.
|
|
|
* The reference ensures this sp->done() call
|
|
|
* - and not the call in qla2xxx_eh_abort() -
|