projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4614e6a
)
ipmi: fix platform return check
author
Corey Minyard
<minyard@acm.org>
Tue, 21 Apr 2009 19:24:02 +0000
(12:24 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 21 Apr 2009 20:41:48 +0000
(13:41 -0700)
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@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_si_intf.c
patch
|
blob
|
history
diff --git
a/drivers/char/ipmi/ipmi_si_intf.c
b/drivers/char/ipmi/ipmi_si_intf.c
index
e58ea4c
..
2438fdf
100644
(file)
--- a/
drivers/char/ipmi/ipmi_si_intf.c
+++ b/
drivers/char/ipmi/ipmi_si_intf.c
@@
-2863,7
+2863,7
@@
static int try_smi_init(struct smi_info *new_smi)
*/
new_smi->pdev = platform_device_alloc("ipmi_si",
new_smi->intf_num);
- if (
r
v) {
+ if (
!new_smi->pde
v) {
printk(KERN_ERR
"ipmi_si_intf:"
" Unable to allocate platform device\n");