lkml.org 
[lkml]   [2020]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 195/453] platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init
    Date
    From: Qinglang Miao <miaoqinglang@huawei.com>

    [ Upstream commit 2425ccd30fd78ce35237350fe8baac31dc18bd45 ]

    Fix to return the error code -ENODEV when fails to init wmi and
    smm.

    Fixes: 41e36f2f85af ("platform/x86: dell-smbios: Link all dell-smbios-* modules together")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
    Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
    Link: https://lore.kernel.org/r/20201125065032.154125-1-miaoqinglang@huawei.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/platform/x86/dell-smbios-base.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/platform/x86/dell-smbios-base.c b/drivers/platform/x86/dell-smbios-base.c
    index fe59b0ebff314..ceb8e701028df 100644
    --- a/drivers/platform/x86/dell-smbios-base.c
    +++ b/drivers/platform/x86/dell-smbios-base.c
    @@ -594,6 +594,7 @@ static int __init dell_smbios_init(void)
    if (wmi && smm) {
    pr_err("No SMBIOS backends available (wmi: %d, smm: %d)\n",
    wmi, smm);
    + ret = -ENODEV;
    goto fail_create_group;
    }

    --
    2.27.0


    \
     
     \ /
      Last update: 2020-12-28 17:10    [W:3.003 / U:0.176 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site