commit | b5956dd26f848086af7413d8d089b4ab41ab341d | [log] [tgz] |
---|---|---|
author | Lynn Lei <lynnl.yet@gmail.com> | Tue Aug 08 23:05:59 2017 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 18 15:57:17 2017 -0700 |
tree | 7163fdc3600998d21fd7ed24271dd3039227bff0 | |
parent | 33ebca0d0538eec224e1fba378f01d5225740f2f [diff] |
drivers/staging/wlan-ng/p80211conv.c: fixed a potential memory leak Fixed a potential memory leak inside skb_ether_to_p80211() When the wep_encrypt() fails the code return 2 directly Which causes the p80211_wep->data dangling Add a kfree statement to reclaim that memory allocated Signed-off-by: Lynn Lei <lynnl.yet@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>