nl80211: Fix potential memory leak in nl80211_set_wowlan
authorOla Olsson <ola1olsson@gmail.com>
Sat, 12 Dec 2015 22:17:17 +0000 (23:17 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 15 Dec 2015 12:10:05 +0000 (13:10 +0100)
commite5dbe0701a0d7c6127f313a0f68f960176f0209e
tree19007a1d352df88b7781a64a0e669cdad1212efe
parent09d118008f9815181d2114b84800e68019cd7b7d
nl80211: Fix potential memory leak in nl80211_set_wowlan

Compared to cfg80211_rdev_free_wowlan in core.h,
the error goto label lacks the freeing of nd_config.
Fix that.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c