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

Commit 773120e4 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Clear complete initialization control block.



Use proper init_cb_size member which takes into account
MID/non-MID init-cb structure sizes.

Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarMadhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: default avatarJames Bottomley <jbottomley@parallels.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 82515920
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5210,7 +5210,7 @@ qla81xx_nvram_config(scsi_qla_host_t *vha)
	}

	/* Reset Initialization control block */
	memset(icb, 0, sizeof(struct init_cb_81xx));
	memset(icb, 0, ha->init_cb_size);

	/* Copy 1st segment. */
	dptr1 = (uint8_t *)icb;