Skip to content

Commit

Permalink
[SCSI] qla2xxx: Clear complete initialization control block.
Browse files Browse the repository at this point in the history
Use proper init_cb_size member which takes into account
MID/non-MID init-cb structure sizes.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed May 17, 2011
1 parent 8251592 commit 773120e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 773120e

Please sign in to comment.