提交 1cd441f9 编写于 作者: D Dave Jones 提交者: Linus Torvalds

[PATCH] ipmi: fix return codes in failure case

These returns should be negative, like the others in this function.
Signed-off-by: NDave Jones <davej@redhat.com>
Acked-by: NCorey Minyard <minyard@acm.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册