cfg80211: avoid mem leak on driver hint set
authorArik Nemtsov <arik@wizery.com>
Thu, 4 Dec 2014 10:22:16 +0000 (12:22 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 12 Dec 2014 11:25:33 +0000 (12:25 +0100)
commit34f05f543f02350e920bddb7660ffdd4697aaf60
tree30dc48d68dada17d558e433c9a59fa0055cc46c7
parent08f6f147773b23b765b94633a8eaa82e7defcf4c
cfg80211: avoid mem leak on driver hint set

In the already-set and intersect case of a driver-hint, the previous
wiphy regdomain was not freed before being reset with a copy of the
cfg80211 regdomain.

Cc: stable@vger.kernel.org
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Acked-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c