kernel-fxtec-pro1x/drivers/scsi/qla4xxx
Tomas Henzl e1cd89c507 [SCSI] qla4xxx: a small loop fix
When the qla4xxx_get_fwddb_entry returns QLA_ERROR
the nex_idx is not updated,
      for (idx = 0; idx < max_ddbs; idx = next_idx) {
                ret = qla4xxx_get_fwddb_entry(ha, idx, NULL, 0, NULL,
                                              &next_idx, &state, &conn_err,
                                                NULL, NULL);
                if (ret == QLA_ERROR)
                        continue;

This means there is a risk that the 'idx < max_ddbs' condition will never
met and the loop will loop forever.
Fix this by explicitly increasing the next_idx in the error condition.

Maybe a break instead of continue is more appropriate, leaving the decision
on the qlogic maintainer.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-12-14 15:40:43 +04:00
..
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2011-10-28 16:44:18 -07:00
Makefile [SCSI] qla4xxx: add bsg support 2011-08-27 08:36:22 -06:00
ql4_attr.c [SCSI] qla4xxx: Added vendor specific sysfs attributes 2011-08-27 08:36:34 -06:00
ql4_bsg.c [SCSI] qla4xxx: Added Get ACB support using BSG 2011-08-27 08:36:44 -06:00
ql4_bsg.h [SCSI] qla4xxx: Added Get ACB support using BSG 2011-08-27 08:36:44 -06:00
ql4_dbg.c [SCSI] qla4xxx: Updated the Copyright header 2010-12-21 12:24:43 -06:00
ql4_dbg.h [SCSI] qla4xxx: Updated the Copyright header 2010-12-21 12:24:43 -06:00
ql4_def.h [SCSI] qla4xxx: fix flash/ddb support 2011-12-14 15:40:43 +04:00
ql4_fw.h [SCSI] qla4xxx: fix flash/ddb support 2011-12-14 15:40:43 +04:00
ql4_glbl.h [SCSI] qla4xxx: fix flash/ddb support 2011-12-14 15:40:43 +04:00
ql4_init.c [SCSI] qla4xxx: a small loop fix 2011-12-14 15:40:43 +04:00
ql4_inline.h [SCSI] qla4xxx: Updated the Copyright header 2010-12-21 12:24:43 -06:00
ql4_iocb.c [SCSI] qla4xxx: Fixed target discovery failed issue. 2011-10-16 11:11:22 -05:00
ql4_isr.c [SCSI] qla4xxx: Added support for adapter and firmware reset 2011-08-27 08:36:49 -06:00
ql4_mbx.c [SCSI] qla4xxx: fix flash/ddb support 2011-12-14 15:40:43 +04:00
ql4_nvram.c [SCSI] qla4xxx: Boot from SAN support for open-iscsi 2011-08-27 08:36:27 -06:00
ql4_nvram.h Fix common misspellings 2011-03-31 11:26:23 -03:00
ql4_nx.c [SCSI] qla4xxx: Do not add duplicate CHAP entry in FLASH 2011-10-16 11:08:41 -05:00
ql4_nx.h [SCSI] qla4xxx: Updated the Copyright header 2010-12-21 12:24:43 -06:00
ql4_os.c [SCSI] qla4xxx: fix flash/ddb support 2011-12-14 15:40:43 +04:00
ql4_version.h [SCSI] qla4xxx: fix flash/ddb support 2011-12-14 15:40:43 +04:00