diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2011-05-10 14:30:14 -0400 |
---|---|---|
committer | James Bottomley <jbottomley@parallels.com> | 2011-05-17 03:35:57 -0400 |
commit | 773120e4df1d2bf543345ad850cc92dc1f1bad8a (patch) | |
tree | 10b900f5907b442dcc83f828ada57605fd2cd849 /drivers/scsi/qla2xxx/qla_init.c | |
parent | 82515920b60760bca9f66decdaa7dd98191fa47c (diff) |
[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>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index cb6969320b47..920b76bfbb93 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -5210,7 +5210,7 @@ qla81xx_nvram_config(scsi_qla_host_t *vha) | |||
5210 | } | 5210 | } |
5211 | 5211 | ||
5212 | /* Reset Initialization control block */ | 5212 | /* Reset Initialization control block */ |
5213 | memset(icb, 0, sizeof(struct init_cb_81xx)); | 5213 | memset(icb, 0, ha->init_cb_size); |
5214 | 5214 | ||
5215 | /* Copy 1st segment. */ | 5215 | /* Copy 1st segment. */ |
5216 | dptr1 = (uint8_t *)icb; | 5216 | dptr1 = (uint8_t *)icb; |