]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - drivers/scsi/qla2xxx/qla_os.c
Merge remote-tracking branch 'mkp-scsi/4.11/scsi-fixes' into fixes
[people/arne_f/kernel.git] / drivers / scsi / qla2xxx / qla_os.c
index 1fed235a1b4a03172a4717a360a90f29ae383a4f..f28d38e93439c6e1ceb87286856bb4d79b098b52 100644 (file)
@@ -1651,7 +1651,8 @@ 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 (GET_CMD_SP(sp) && !ha->flags.eeh_busy) {
+                               if (GET_CMD_SP(sp) && !ha->flags.eeh_busy &&
+                                   (sp->type == SRB_SCSI_CMD)) {
                                        /* 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() -