]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
platform/x86: dell-wmi: check for kmalloc() errors
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 11 Dec 2017 10:54:27 +0000 (13:54 +0300)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 12 Dec 2017 01:26:03 +0000 (17:26 -0800)
commit532298b95075144bcccf56d792f3fb3fbef2d5d0
tree98640fc28ac7dbd3663b283cb6a58f38b2783b4d
parentbff5bf9db1c9453ffd0a78abed3e2d040c092fd9
platform/x86: dell-wmi: check for kmalloc() errors

This allocation won't fail in the current kernel because it's small but
not checking for kmalloc() failures introduces static checker warnings
so let's fix it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/dell-wmi.c