aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 42e20612df80..ecebdfa00470 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -1265,11 +1265,10 @@ lpfc_hba_init(struct lpfc_hba *phba, uint32_t *hbainit)
1265 uint32_t *HashWorking; 1265 uint32_t *HashWorking;
1266 uint32_t *pwwnn = (uint32_t *) phba->wwnn; 1266 uint32_t *pwwnn = (uint32_t *) phba->wwnn;
1267 1267
1268 HashWorking = kmalloc(80 * sizeof(uint32_t), GFP_KERNEL); 1268 HashWorking = kcalloc(80, sizeof(uint32_t), GFP_KERNEL);
1269 if (!HashWorking) 1269 if (!HashWorking)
1270 return; 1270 return;
1271 1271
1272 memset(HashWorking, 0, (80 * sizeof(uint32_t)));
1273 HashWorking[0] = HashWorking[78] = *pwwnn++; 1272 HashWorking[0] = HashWorking[78] = *pwwnn++;
1274 HashWorking[1] = HashWorking[79] = *pwwnn; 1273 HashWorking[1] = HashWorking[79] = *pwwnn;
1275 1274