Skip to content

Commit

Permalink
[SCSI] qla2xxx: Fixed zero test on new_config in qla2x00_process_loop…
Browse files Browse the repository at this point in the history
…back().

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>
  • Loading branch information
Joe Carnuccio authored and James Bottomley committed Dec 23, 2010
1 parent ff8073f commit 4052bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 4052bd5

Please sign in to comment.