mac80211: fix possible memory leak on AP CSA failure
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 29 Jan 2014 06:56:18 +0000 (07:56 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 20:58:09 +0000 (21:58 +0100)
commit97518af1260553d2cad71b37a76b597360519e8a
tree659dff2c80ead09ddb4c72a7bc67906d0a0e9a61
parentfaf046e7231bf008715bbffe5cca2ed3aa31be1b
mac80211: fix possible memory leak on AP CSA failure

If CSA for AP interface failed and the interface
was not stopped afterwards another CSA request
would leak sdata->u.ap.next_beacon.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c