Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Corey Minyard and committed by
Linus Torvalds
8b32b5d0 4614e6ad

+1 -1
+1 -1
drivers/char/ipmi/ipmi_si_intf.c
··· 2863 2863 */ 2864 2864 new_smi->pdev = platform_device_alloc("ipmi_si", 2865 2865 new_smi->intf_num); 2866 - if (rv) { 2866 + if (!new_smi->pdev) { 2867 2867 printk(KERN_ERR 2868 2868 "ipmi_si_intf:" 2869 2869 " Unable to allocate platform device\n");