cfg80211: Fix memory leak
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 4 Feb 2013 21:33:44 +0000 (15:33 -0600)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 17:44:41 +0000 (18:44 +0100)
commitb7566fc363e23f0efd3fa1e1460f9421cdc0d77e
tree2a9c044f8771292ef942cdeab9b0636d676140d8
parent78f42aee884dedfd157f79d01f069550edbc95cf
cfg80211: Fix memory leak

When a driver requests a specific regulatory domain after cfg80211 already
has one, a struct ieee80211_regdomain is leaked.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c