From: Johannes Berg Date: Fri, 10 May 2013 17:23:40 +0000 (+0200) Subject: cfg80211: fix wiphy_register error path X-Git-Tag: v3.10-rc3~18^2~18^2^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03cd7e4e1ea16cd151c799a33b5ca1fd41a464df;p=pandora-kernel.git cfg80211: fix wiphy_register error path If rfkill_register() fails in wiphy_register() the struct device is unregistered but everything else isn't (regulatory, debugfs) and we even leave the wiphy instance on all internal lists even though it will likely be freed soon, which is clearly a problem. Fix this by cleaning up properly. Cc: stable@vger.kernel.org Signed-off-by: Johannes Berg --- Reading git-diff-tree failed