]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] qla4xxx: Fix verify boot idx correctly
authorLalit Chandivade <lalit.chandivade@qlogic.com>
Mon, 13 Feb 2012 13:00:42 +0000 (18:30 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 15:31:46 +0000 (09:31 -0600)
commitf256ec0e44e203d38842cefc0177669aa4550a12
treef0c82c1b7bf68d7496369b0480e92d720e9bb092
parentbbffd870e6261bf73184f7a5b9050bb9317cb3a9
[SCSI] qla4xxx: Fix verify boot idx correctly

qla4xxx_verify_boot_idx can falsely report a DDB to be boot target
if ha->pri_ddb_idx and ha->sec_ddb_idx are not initialized correctly.
What this could cause is if there is DDB entry in FLash at index 0, then
qla4xxx_verify_boot_idx would return wrong result as ha->pri_ddb_idx is not
set correctly. Fixed the qla4xxx_get_boot_info to set the ha->pri_ddb_idx and
ha->sec_ddb_idx correctly.

Signed-off-by: Lalit Chandivade <lalit.chandivade@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_os.c