From: Adheer Chandravanshi Date: Mon, 8 Jul 2013 12:33:09 +0000 (-0400) Subject: [SCSI] qla4xxx: Only BIOS boot target entries should be at index 0 and 1. X-Git-Tag: accepted/tizen/common/20141203.182822~1444^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9993757409adbd2eb335e4fd1c8f966bc49d68d2;p=platform%2Fkernel%2Flinux-arm64.git [SCSI] qla4xxx: Only BIOS boot target entries should be at index 0 and 1. Flash target index 0 and 1 are reserved for boot target entries created with BIOS utility. Signed-off-by: Adheer Chandravanshi Signed-off-by: Vikas Chaudhary Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 64e7e85..66489b2 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -5707,7 +5707,8 @@ static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf, goto exit_ddb_add; } - for (idx = 0; idx < max_ddbs; idx++) { + /* Index 0 and 1 are reserved for boot target entries */ + for (idx = 2; idx < max_ddbs; idx++) { if (qla4xxx_flashdb_by_index(ha, fw_ddb_entry, fw_ddb_entry_dma, idx)) break;