Tag: b4e4f47e940bc93c5b1125a4429ff53956754800

nl80211: fix possible memory leak nl80211_connect()

Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> connkeys is malloced in nl80211_parse_connkeys() and should be freed in the error handling case, otherwise it will cause memory leak. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: Johannes Berg — net/wireless/nl80211.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)   …

Continue reading