cfg80211: fix rtnl leak in wiphy dump error cases
authorJohannes Berg <johannes.berg@intel.com>
Tue, 11 Jun 2013 14:51:03 +0000 (16:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Jun 2013 14:52:39 +0000 (16:52 +0200)
commit940d0ac9dbe3fb9d4806e96f006286c2e476deed
tree3fea9c0940ebc98eb60e1459ed80ae48440d241b
parentea141b75ae29636b5c9e9d2e2e77b3dd1ab4c934
cfg80211: fix rtnl leak in wiphy dump error cases

In two wiphy dump error cases, most often when the dump allocation
must be increased, the RTNL is leaked. This quickly results in a
complete system lockup. Release the RTNL correctly.

Reported-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c