From: Thadeu Lima de Souza Cascardo Date: Wed, 9 Jun 2010 19:48:39 +0000 (-0300) Subject: classmate-laptop: should check for NULL as retval for rfkill_alloc X-Git-Tag: v2.6.36-rc1~579^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b95d13eaf3d4ea093aba95c7f615f3b10708a2c4;p=pandora-kernel.git classmate-laptop: should check for NULL as retval for rfkill_alloc rfkill_alloc returns NULL when it fails if RFKILL is enabled. When RFKILL is disabled, its return value of ERR_PTR(-ENODEV) is OK to use as all rfkill functions will work with it, as they are simply empty stubs. Reported-by: Alan Jenkins Cc: Johannes Berg Cc: platform-driver-x86@vger.kernel.org Cc: mjg@redhat.com Cc: don@syst.com.br Cc: rpurdie@rpsys.net Signed-off-by: Thadeu Lima de Souza Cascardo Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed