]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit091ba2e780030055b9d3c78449871d581a37629a
treeb8ec1a3c2cf7b0eb8e2be2a25a8252b31e85e33a
parent74a9c525617ab2477d2333c8ab9873510d6d496f
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