]> git.baikalelectronics.ru Git - kernel.git/commit
hp-wmi: check for allocation failures
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 May 2012 06:48:12 +0000 (09:48 +0300)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:29:33 +0000 (14:29 -0400)
commit9b85ea22cdd98394f04fe55d48c4f47658ba60d0
tree9f45bd2e95af0773f2f117cc11ebf85c8cfaf7f8
parente7e2e45d1b23e08102cf7919c3eeff8b9a5019ff
hp-wmi: check for allocation failures

rfkill_alloc() returns NULL on failure.  Check for it, to make the
static checkers happy.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/hp-wmi.c