]> git.baikalelectronics.ru Git - 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 00:32:30 +0000 (16:32 -0800)
commitb87810f150895c3b420f60b065222a695fd494b8
tree1ed9a5ff48eb647642fdb8813e8978e077f832ac
parente52db8540f8808e99ad6aaf301b654ddf11f4f2e
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