cfg80211: reg: centralize freeing ignored requests
authorJohannes Berg <johannes.berg@intel.com>
Thu, 15 Oct 2015 11:05:55 +0000 (13:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 16 Oct 2015 07:15:44 +0000 (09:15 +0200)
commitd34265a3eebe994b3b9a0e4cabbc2dbb8436388b
treec185e722bdda0c7ea9abfdaecb7c1d1e42ab6e2c
parent480908a7ec5f2d37d5610b7d9bc48a38f2093876
cfg80211: reg: centralize freeing ignored requests

Instead of having a lot of places that free ignored requests
and then return REG_REQ_OK, make reg_process_hint() process
REG_REQ_IGNORE by freeing the request, and let functions it
calls return that instead of freeing.

This also fixes a leak when a second (different) country IE
hint was ignored.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c