sony-laptop: fix early NULL pointer dereference
authorMattia Dongili <malattia@linux.it>
Sat, 2 Apr 2011 10:00:44 +0000 (19:00 +0900)
committerMatthew Garrett <mjg@redhat.com>
Mon, 4 Apr 2011 16:51:13 +0000 (12:51 -0400)
The SNC acpi driver could get early notifications before it fully
initializes and that could lead to dereferencing the sony_nc_handles
structure pointer that is still NULL at that stage.
Make sure we return early from the handle lookup function in these
cases.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <mjg@redhat.com>

No differences found