scsi: qla2xxx: Use Correct index for Q-Pair array
authorQuinn Tran <qutran@marvell.com>
Fri, 26 Jul 2019 16:07:29 +0000 (09:07 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 30 Jul 2019 20:12:02 +0000 (16:12 -0400)
commit178235f43ea142cf0f07dba67657494fcec21254
treedb6acf2bdf870d417fb7dae944dca2ec6c142d60
parent0c6df59061b23c7a951836d23977be34e896d3da
scsi: qla2xxx: Use Correct index for Q-Pair array

For target mode, the default number of Q-Pairs allowed to use is 2. If the
number of Q-Pairs allocated is lower than the default Q-Pairs, then lower
value should be the set as default.

[mkp: typo]

Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c