Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6f9288e authored by weiyongjun (A)'s avatar weiyongjun (A) Committed by Andy Shevchenko
Browse files

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: 549b4930 ("platform/x86: dell-smbios: Introduce dispatcher for SMM calls")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarMario Limonciello <mario.limonciello@dell.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 4255c30f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2074,8 +2074,10 @@ static int __init dell_init(void)
		goto fail_platform_device2;

	buffer = kzalloc(sizeof(struct calling_interface_buffer), GFP_KERNEL);
	if (!buffer)
	if (!buffer) {
		ret = -ENOMEM;
		goto fail_buffer;
	}


	ret = dell_setup_rfkill();