From: Mattia Dongili Date: Sat, 2 Apr 2011 10:00:44 +0000 (+0900) Subject: sony-laptop: fix early NULL pointer dereference X-Git-Tag: v2.6.39-rc4~63^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fef34861381eefe266c822fc28bdedc897a8265f;p=pandora-kernel.git sony-laptop: fix early NULL pointer dereference 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 Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed