mwifiex: fix possible memory leak in mwifiex_cfg80211_start_ap()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:43:18 +0000 (11:43 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 18 Jul 2016 19:39:42 +0000 (22:39 +0300)
commit4028a514eaa6649693be1a7cb8d2b84a8fc8cc8c
tree88df63be3778760352563f8c4214bace28de7b55
parent83d58d53e062aad0f9dfbb68780bfaebf4e8bafe
mwifiex: fix possible memory leak in mwifiex_cfg80211_start_ap()

memory is malloced in mwifiex_cfg80211_start_ap() and should be
freed before leaving from the error handling cases, otherwise it
will cause memory leak.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c