alienware-wmi: cover some scenarios where memory allocations would fail
authorMario Limonciello <mario_limonciello@dell.com>
Fri, 4 Apr 2014 19:40:20 +0000 (14:40 -0500)
committerMatthew Garrett <matthew.garrett@nebula.com>
Thu, 10 Apr 2014 16:11:56 +0000 (12:11 -0400)
commit562c7cec1e92be85ade6f65fff107651e10ee2ed
tree5b84c1525c05563990c2397300881fef0f06d409
parenta46ad0f13bc32a9601f3c5dff43fafdc2c598814
alienware-wmi: cover some scenarios where memory allocations would fail

Intel test builder caught a few instances that should test if kzalloc failed to
allocate memory as well as a scenario that platform_driver wasn't properly
initialized.

Signed-off-by: Mario Limonciello <mario_limonciello@dell.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/alienware-wmi.c