Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68868
b: refs/heads/master
c: 5687619
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and James Bottomley committed Oct 12, 2007
1 parent c903e9d commit 3ea1b38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7383a234626b58dc6bc210ed806a6911c1f44e1
refs/heads/master: 568761955ad01c6d238d8b12d21a554c1226a37b
13 changes: 7 additions & 6 deletions trunk/drivers/message/fusion/mptbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -1458,18 +1458,18 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
struct proc_dir_entry *dent, *ent;
#endif

if (mpt_debug_level)
printk(KERN_INFO MYNAM ": mpt_debug_level=%xh\n", mpt_debug_level);

if (pci_enable_device(pdev))
return r;

ioc = kzalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC);
if (ioc == NULL) {
printk(KERN_ERR MYNAM ": ERROR - Insufficient memory to add adapter!\n");
return -ENOMEM;
}

ioc->debug_level = mpt_debug_level;
if (mpt_debug_level)
printk(KERN_INFO MYNAM ": mpt_debug_level=%xh\n", mpt_debug_level);

if (pci_enable_device(pdev))
return r;

dinitprintk(ioc, printk(KERN_WARNING MYNAM ": mpt_adapter_install\n"));

Expand All @@ -1478,6 +1478,7 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n"));
} else if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) {
printk(KERN_WARNING MYNAM ": 32 BIT PCI BUS DMA ADDRESSING NOT SUPPORTED\n");
kfree(ioc);
return r;
}

Expand Down

0 comments on commit 3ea1b38

Please sign in to comment.