]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SCSI] qla2xxx: Fixed zero test on new_config in qla2x00_process_loopback().
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Wed, 22 Dec 2010 00:00:17 +0000 (16:00 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 23 Dec 2010 21:44:48 +0000 (15:44 -0600)
Fixed the incorrect zero test on array new_config[].

Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_bsg.c

index 31a4121a2be1651543d97cd99be7534c86a6acb9..6146d392eeb5722562630f1226856830d7bd37d4 100644 (file)
@@ -753,7 +753,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job)
                        command_sent = INT_DEF_LB_LOOPBACK_CMD;
                        rval = qla2x00_loopback_test(vha, &elreq, response);
 
-                       if (new_config[1]) {
+                       if (new_config[0]) {
                                /* Revert back to original port config
                                 * Also clear internal loopback
                                 */