Skip to content
Commit e6436be2 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: 5a490510

 ("mac80211: use per-CPU TX/RX statistics")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8f815cdd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment