mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
[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: 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>
This commit is contained in:
parent
82515920b6
commit
773120e4df
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue