]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ab4a90c00b1bb7362fa74bc09719da572b2ca4c
tree80ff2dc7806ae3f6a95de9d8f7ac98827552ae4f
parentb2c8ae97f0b059a03729686bd24c22c99dd76285
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