cfg80211: fix error path in cfg80211_wext_siwscan
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 23 Dec 2009 14:33:35 +0000 (15:33 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Dec 2009 21:19:58 +0000 (16:19 -0500)
If there's an invalid channel or SSID, the code leaks
the scan request. Always free the scan request, unless
it was successfully given to the driver.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found