aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptfc.c')
-rw-r--r--drivers/message/fusion/mptfc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c
index df1e6faebf19..3cdd4e962115 100644
--- a/drivers/message/fusion/mptfc.c
+++ b/drivers/message/fusion/mptfc.c
@@ -1282,14 +1282,15 @@ mptfc_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1282 /* SCSI needs scsi_cmnd lookup table! 1282 /* SCSI needs scsi_cmnd lookup table!
1283 * (with size equal to req_depth*PtrSz!) 1283 * (with size equal to req_depth*PtrSz!)
1284 */ 1284 */
1285 hd->ScsiLookup = kcalloc(ioc->req_depth, sizeof(void *), GFP_ATOMIC); 1285 ioc->ScsiLookup = kcalloc(ioc->req_depth, sizeof(void *), GFP_ATOMIC);
1286 if (!hd->ScsiLookup) { 1286 if (!ioc->ScsiLookup) {
1287 error = -ENOMEM; 1287 error = -ENOMEM;
1288 goto out_mptfc_probe; 1288 goto out_mptfc_probe;
1289 } 1289 }
1290 spin_lock_init(&ioc->scsi_lookup_lock);
1290 1291
1291 dprintk(ioc, printk(MYIOC_s_DEBUG_FMT "ScsiLookup @ %p\n", 1292 dprintk(ioc, printk(MYIOC_s_DEBUG_FMT "ScsiLookup @ %p\n",
1292 ioc->name, hd->ScsiLookup)); 1293 ioc->name, ioc->ScsiLookup));
1293 1294
1294 /* Clear the TM flags 1295 /* Clear the TM flags
1295 */ 1296 */