]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitdd258c00b96932ce2a81a9bb8bb8e6be997aa2cc
tree9f45bd2e95af0773f2f117cc11ebf85c8cfaf7f8
parent121b7b0d2976c4b915434ae8005f0dde6e05e440
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