diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-05-10 19:23:40 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-05-16 22:38:02 +0200 |
commit | 03cd7e4e1ea16cd151c799a33b5ca1fd41a464df (patch) | |
tree | 9671b8250f80a796e9dcf06933a4f9dc799600be /init | |
parent | 61f1598278876527314f5fc1d00cf0a4d525c1f7 (diff) | |
download | linux-3.10-03cd7e4e1ea16cd151c799a33b5ca1fd41a464df.tar.gz linux-3.10-03cd7e4e1ea16cd151c799a33b5ca1fd41a464df.tar.bz2 linux-3.10-03cd7e4e1ea16cd151c799a33b5ca1fd41a464df.zip |
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 <johannes.berg@intel.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions