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 00:32:30 +0000 (16:32 -0800)
commit91c73e809233e8f93278458b2818fd577c3deb02
tree1ed9a5ff48eb647642fdb8813e8978e077f832ac
parent9cd5cf3710a04e6bab8efac08c241bfce2795c02
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