projects
/
firefly-linux-kernel-4.4.55.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 e58ea4cd55ce02a101f282dd5977be4417b41bf4..2438fdf889b4817d6efe7a84eebabd4e0d4cc17b 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");