diff options
Diffstat (limited to 'drivers/scsi/bfa/bfad.c')
-rw-r--r-- | drivers/scsi/bfa/bfad.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c index beb30a748ea5..66fb72531b34 100644 --- a/drivers/scsi/bfa/bfad.c +++ b/drivers/scsi/bfa/bfad.c | |||
@@ -1348,7 +1348,7 @@ int | |||
1348 | bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid) | 1348 | bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid) |
1349 | { | 1349 | { |
1350 | struct bfad_s *bfad; | 1350 | struct bfad_s *bfad; |
1351 | int error = -ENODEV, retval; | 1351 | int error = -ENODEV, retval, i; |
1352 | 1352 | ||
1353 | /* For single port cards - only claim function 0 */ | 1353 | /* For single port cards - only claim function 0 */ |
1354 | if ((pdev->device == BFA_PCI_DEVICE_ID_FC_8G1P) && | 1354 | if ((pdev->device == BFA_PCI_DEVICE_ID_FC_8G1P) && |
@@ -1372,6 +1372,12 @@ bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid) | |||
1372 | bfa_trc_init(bfad->trcmod); | 1372 | bfa_trc_init(bfad->trcmod); |
1373 | bfa_trc(bfad, bfad_inst); | 1373 | bfa_trc(bfad, bfad_inst); |
1374 | 1374 | ||
1375 | /* AEN INIT */ | ||
1376 | INIT_LIST_HEAD(&bfad->free_aen_q); | ||
1377 | INIT_LIST_HEAD(&bfad->active_aen_q); | ||
1378 | for (i = 0; i < BFA_AEN_MAX_ENTRY; i++) | ||
1379 | list_add_tail(&bfad->aen_list[i].qe, &bfad->free_aen_q); | ||
1380 | |||
1375 | if (!(bfad_load_fwimg(pdev))) { | 1381 | if (!(bfad_load_fwimg(pdev))) { |
1376 | kfree(bfad->trcmod); | 1382 | kfree(bfad->trcmod); |
1377 | goto out_alloc_trace_failure; | 1383 | goto out_alloc_trace_failure; |