Re: [PATCH -next] cfg80211: fix possible memory leak in cfg80211_iter_combinations()

2016-10-17 Thread Johannes Berg
On Mon, 2016-10-17 at 15:25 +, Wei Yongjun wrote: > From: Wei Yongjun > > 'limits' is malloced in cfg80211_iter_combinations() and should be > freed > before leaving from the error handling cases, otherwise it will cause > memory leak. Yep, thanks; applied. johannes

[PATCH -next] cfg80211: fix possible memory leak in cfg80211_iter_combinations()

2016-10-17 Thread Wei Yongjun
From: Wei Yongjun 'limits' is malloced in cfg80211_iter_combinations() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: 0c317a02ca98 ("cfg80211: support virtual interfaces with different beacon intervals") Signed-off-by: Wei Yongjun -