From: Anssi Hannula Date: Sun, 20 Feb 2011 18:07:24 +0000 (+0200) Subject: hp-wmi: clear rfkill device pointers when appropriate X-Git-Tag: v2.6.39-rc1~20^2^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d97db590ca2787c202cf35e76f5d24b3007bc7c;p=pandora-kernel.git hp-wmi: clear rfkill device pointers when appropriate NULLify rfkill pointers during initialization. This prevents dereference of invalid pointer in case the driver is rebound and some rfkill device isn't detected anymore. Clear them also in hp_wmi_rfkill_setup failure path so that an rfkill initialization failure doesn't need to be fatal for the whole driver. Signed-off-by: Anssi Hannula Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed