]> git.baikalelectronics.ru Git - kernel.git/commit
staging:rtl8192u: Remove potential memory leak
authorJohn Whitmore <johnfwhitmore@gmail.com>
Wed, 26 Sep 2018 19:17:04 +0000 (20:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 12:36:58 +0000 (14:36 +0200)
commit76f609daffb58256b83f004e0ab10cd1fcbae64e
tree4c56e6994e952dcf7285f73e7d41265ddb6d1533
parent9872fb1904dbb601406e7e7e628b0304f59d97b2
staging:rtl8192u: Remove potential memory leak

Add call to ieee80211_networks_free() to avoid potential memory
leak if allocation of pHTInfo fails.

If the third allocation fails only the first successful allocation
is freed, not the second.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c