Merge branch '6.2/scsi-queue' into 6.2/scsi-fixes
[linux-2.6-microblaze.git] / drivers / scsi / scsi_error.c
index a7960ad..2aa2c2a 100644 (file)
@@ -231,6 +231,11 @@ scsi_abort_command(struct scsi_cmnd *scmd)
        struct Scsi_Host *shost = sdev->host;
        unsigned long flags;
 
+       if (!shost->hostt->eh_abort_handler) {
+               /* No abort handler, fail command directly */
+               return FAILED;
+       }
+
        if (scmd->eh_eflags & SCSI_EH_ABORT_SCHEDULED) {
                /*
                 * Retry after abort failed, escalate to next level.