forked from luck/tmp_suning_uos_patched
ipmi: missing error code in try_smi_init()
If platform_device_alloc() then we should return -ENOMEM instead of returning success. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
e8824babad
commit
532ed9264d
|
@ -2071,6 +2071,7 @@ static int try_smi_init(struct smi_info *new_smi)
|
|||
new_smi->intf_num);
|
||||
if (!new_smi->pdev) {
|
||||
pr_err(PFX "Unable to allocate platform device\n");
|
||||
rv = -ENOMEM;
|
||||
goto out_err;
|
||||
}
|
||||
new_smi->io.dev = &new_smi->pdev->dev;
|
||||
|
|
Loading…
Reference in New Issue
Block a user