Skip to content
Commit 313c3fe9 authored by Michael Vassernis's avatar Michael Vassernis Committed by Johannes Berg
Browse files

mac80211_hwsim: fix incorrect dev_alloc_name failure goto



If dev_alloc_name fails, hwsim_mon's memory allocated in alloc_netdev
needs to be freed.
Change goto command in dev_alloc_name failure to out_free_mon in
order to perform free_netdev.

Signed-off-by: default avatarMichael Vassernis <michael.vassernis@tandemg.com>
Link: https://lore.kernel.org/r/20191003073049.3760-1-michael.vassernis@tandemg.com
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3afb0961
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