OSDN Git Service

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)
commitdaf9a56cbb791865db751d97c570d90b9e0aed20
tree4c56e6994e952dcf7285f73e7d41265ddb6d1533
parent12f34f81ba513258067714a9161463ef3d3785e5
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