Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99937574 authored by Adheer Chandravanshi's avatar Adheer Chandravanshi Committed by James Bottomley
Browse files

[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: default avatarAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>
Signed-off-by: default avatarVikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent a2f76636
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;