android_kernel_samsung_a7y1.../net/wireless
Eric Biggers bd527e70ed cfg80211: fix memory leak of wiphy device name
commit 4f488fbca2a86cc7714a128952eead92cac279ab upstream.

In wiphy_new_nm(), if an error occurs after dev_set_name() and
device_initialize() have already been called, it's necessary to call
put_device() (via wiphy_free()) to avoid a memory leak.

Reported-by: syzbot+7fddca22578bc67c3fe4@syzkaller.appspotmail.com
Fixes: 1f87f7d3a3b4 ("cfg80211: add rfkill support")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 19:16:58 +02:00
..
ap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chan.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core.c cfg80211: fix memory leak of wiphy device name 2020-04-06 19:16:58 +02:00
core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
db.txt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debugfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debugfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ethtool.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
genregdb.awk A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ibss.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib80211_crypt_ccmp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib80211_crypt_tkip.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib80211_crypt_wep.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib80211.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mesh.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mlme.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nl80211.c mac80211/cfg80211: update bss channel on channel switch 2020-04-06 18:18:07 +02:00
nl80211.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ocb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
radiotap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rdev-ops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reg.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
regdb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scan.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sme.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
util.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wext-compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wext-compat.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wext-core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wext-priv.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wext-proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wext-sme.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wext-spy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30