rsi: Fix memory leak in module unload
authorPrameela Rani Garnepudi <prameela.j04cs@gmail.com>
Thu, 13 Oct 2016 11:25:46 +0000 (16:55 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Nov 2016 06:43:52 +0000 (08:43 +0200)
commitb022539db49a31bd55cb8167dec5a67967ba8a2c
tree5f8f66693ab7a76a4be18cc491bff412a61956a5
parent87016f5eb1a39251f982ae7a6f2843f82307ae47
rsi: Fix memory leak in module unload

Observed crash when module is unloaded if CONFIG_RSI_DEBUGSFS is not set.
Fix: Debugfs entry removal moved inside CONFIG_RSI_DEBUGSFS flag in
             function rsi_mac80211_detach()
Memory leak found and fixed for below structures in function rsi_mac80211_detach()
* channel list for each supported band
* rsi debugfs info

Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c