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)
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>

No differences found