sony-laptop: potential null dereference
authorDan Carpenter <error27@gmail.com>
Sun, 27 Feb 2011 14:13:25 +0000 (17:13 +0300)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:07:25 +0000 (06:07 -0400)
commit200140bdb52b259380e9082e2a4f25a4ddbb5d68
treeb8ec1a3c2cf7b0eb8e2be2a25a8252b31e85e33a
parent31f007598cc547ba3239524470386af8ae5f1c13
sony-laptop: potential null dereference

In the original code, if "device_enum" was NULL then it would
dereference it when it printed the error message.

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