]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla2xxx: Enclose adapter related calls in adapter check in failed state handler.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Wed, 22 Aug 2012 18:21:25 +0000 (14:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 17:28:53 +0000 (18:28 +0100)
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_nx.c

index 3a054445fca10a0ba47ada60365d23b4a3a1a2ed..7807444418ffe13722b6928471040f82c5654ca6 100644 (file)
@@ -3028,8 +3028,10 @@ qla8xxx_dev_failed_handler(scsi_qla_host_t *vha)
        ql_log(ql_log_fatal, vha, 0x00b8,
            "Disabling the board.\n");
 
-       qla82xx_clear_drv_active(ha);
-       qla82xx_idc_unlock(ha);
+       if (IS_QLA82XX(ha)) {
+               qla82xx_clear_drv_active(ha);
+               qla82xx_idc_unlock(ha);
+       }
 
        /* Set DEV_FAILED flag to disable timer */
        vha->device_flags |= DFLG_DEV_FAILED;