asus-wmi: potential NULL dereference in show_call()
commita1d6086739c5b8f23a48e02e62b0e495321a2122
authorDan Carpenter <error27@gmail.com>
Tue, 15 Mar 2011 07:07:37 +0000 (15 10:07 +0300)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:46:07 +0000 (28 06:46 -0400)
tree5cd8b2d2c777256dd5f2b122d3c8a82bea5d1307
parent0986f25fbba8827762b35222bb45d2fbb2d72fa4
asus-wmi: potential NULL dereference in show_call()

In the earlier check we assumed that "obj" could be NULL.  I looked at
some of the other places that call evaluate_object() and they check
for NULL as well.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-wmi.c