ath10k: fix memleak in mac setup
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 22 Jul 2013 12:13:30 +0000 (14:13 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 30 Jul 2013 15:01:21 +0000 (18:01 +0300)
commitd6015b27f7dd6e167cd90b590dc9ed5dfbc68086
tree1be9b53fcc932d37c4338707f5feff2ee7ae2e7b
parent21bf9112b596cb91e4f63de859ea514f081031fd
ath10k: fix memleak in mac setup

In some cases channel arrays were never freed.

The patch also unifies error handling in the mac
setup function.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c