[<prev] [next>] [day] [month] [year] [list]
Message-id: <20090303151811.GA7777@minyard.local>
Date: Tue, 03 Mar 2009 09:18:11 -0600
From: Corey Minyard <minyard@....org>
To: Andrew Morton <akpm@...l.org>,
Linux Kernel <linux-kernel@...r.kernel.org>
Cc: OpenIPMI Developers <openipmi-developer@...ts.sourceforge.net>
Subject: [PATCH 1/5] IPMI: Fix platform return check
The wrong return value is being tested when allocating a platform
device in the IPMI SI code. Check the right value.
Signed-off-by: Corey Minyard <minyard@....org>
---
Index: linux-2.6.25/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
--- linux-2.6.25.orig/drivers/char/ipmi/ipmi_si_intf.c
+++ linux-2.6.25/drivers/char/ipmi/ipmi_si_intf.c
@@ -2864,7 +2864,7 @@ static int try_smi_init(struct smi_info
*/
new_smi->pdev = platform_device_alloc("ipmi_si",
new_smi->intf_num);
- if (rv) {
+ if (!new_smi->pdev) {
printk(KERN_ERR
"ipmi_si_intf:"
" Unable to allocate platform device\n");
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists