Commit 1cd441f9 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] ipmi: fix return codes in failure case

These returns should be negative, like the others in this function.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Acked-by: default avatarCorey Minyard <minyard@acm.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c4ec7b0d
...@@ -1789,7 +1789,7 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev, ...@@ -1789,7 +1789,7 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev,
info = kzalloc(sizeof(*info), GFP_KERNEL); info = kzalloc(sizeof(*info), GFP_KERNEL);
if (!info) if (!info)
return ENOMEM; return -ENOMEM;
info->addr_source = "PCI"; info->addr_source = "PCI";
...@@ -1810,7 +1810,7 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev, ...@@ -1810,7 +1810,7 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev,
kfree(info); kfree(info);
printk(KERN_INFO "ipmi_si: %s: Unknown IPMI type: %d\n", printk(KERN_INFO "ipmi_si: %s: Unknown IPMI type: %d\n",
pci_name(pdev), class_type); pci_name(pdev), class_type);
return ENOMEM; return -ENOMEM;
} }
rv = pci_enable_device(pdev); rv = pci_enable_device(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment