Johannes Berg 5b0ec94f9c mac80211: fix memory leak in register_hw() error path
Move the internal scan request allocation below the last
sanity check in ieee80211_register_hw() to avoid leaking
memory if the sanity check actually triggers.

Reported-by: ZHAO Gang <gamerh2o@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-01-06 16:02:34 +01:00
..
2013-12-18 10:33:06 +01:00
2013-12-18 10:33:06 +01:00
2009-07-10 15:01:49 -04:00
2013-10-28 15:05:11 +01:00
2013-12-16 11:29:48 +01:00
2013-12-16 11:29:48 +01:00
2013-02-04 18:57:47 +01:00
2013-12-16 11:29:45 +01:00
2013-10-15 15:16:29 +02:00
2011-03-31 11:26:23 -03:00
2013-12-02 11:51:50 +01:00
2013-12-18 10:33:06 +01:00
2012-06-24 11:33:18 +02:00
2013-12-18 10:33:06 +01:00
2012-03-13 14:54:16 -04:00
2013-12-19 16:30:58 +01:00
2012-06-20 17:35:22 +02:00