Johannes Berg e6436be21e mac80211: fix statistics leak if dev_alloc_name() fails
In the case that dev_alloc_name() fails, e.g. because the name was
given by the user and already exists, we need to clean up properly
and free the per-CPU statistics. Fix that.

Cc: stable@vger.kernel.org
Fixes: 5a490510ba5f ("mac80211: use per-CPU TX/RX statistics")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-04-27 10:06:58 +02:00
..
2015-01-27 11:07:35 +01:00
2015-01-27 11:09:13 +01:00
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2015-08-14 17:49:53 +02:00
2015-05-11 19:16:04 +02:00
2015-10-14 18:40:26 +02:00
2014-04-09 14:49:43 +02:00
2016-04-05 11:26:33 +02:00
2015-05-11 14:51:29 +02:00
2012-03-13 14:54:16 -04:00