nl80211: fix a few memory leaks in reg.c
authorOla Olsson <ola1olsson@gmail.com>
Sun, 13 Dec 2015 18:12:03 +0000 (19:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 15 Dec 2015 12:08:02 +0000 (13:08 +0100)
commit09d118008f9815181d2114b84800e68019cd7b7d
tree80ff2dc7806ae3f6a95de9d8f7ac98827552ae4f
parentb7bb110008607a915298bf0f47d25886ecb94477
nl80211: fix a few memory leaks in reg.c

The first leak occurs when entering the default case
in the switch for the initiator in set_regdom.
The second leaks a platform_device struct if the
platform registration in regulatory_init succeeds but
the sub sequent regulatory hint fails due to no memory.

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