]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-laptop: fix error return code in dell_init()
authorweiyongjun (A) <weiyongjun1@huawei.com>
Tue, 14 Nov 2017 13:40:13 +0000 (13:40 +0000)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 21 Nov 2017 18:11:44 +0000 (20:11 +0200)
commit46936c512f49d068a626bf23806fc9746a19fe2c
tree54b462c08c87929bddfc9635d02935ffa134707c
parent33ba714fe4e5645060ecec6cd3e213ff488e47ae
platform/x86: dell-laptop: fix error return code in dell_init()

Fix to return error code -ENOMEM from the kzalloc() error handling
case instead of 0, as done elsewhere in this function.

Fixes: 9affb643aeba ("platform/x86: dell-smbios: Introduce dispatcher for SMM calls")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dell-laptop.c