From: Joe Carnuccio Date: Wed, 22 Dec 2010 00:00:17 +0000 (-0800) Subject: [SCSI] qla2xxx: Fixed zero test on new_config in qla2x00_process_loopback(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4052bd57234f119cef13b8997fcc852e2b2ce992;p=linux-beck.git [SCSI] qla2xxx: Fixed zero test on new_config in qla2x00_process_loopback(). Fixed the incorrect zero test on array new_config[]. Signed-off-by: Joe Carnuccio Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 31a4121a2be1..6146d392eeb5 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -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 */