]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix add_interface failure handling
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 16 Oct 2013 12:44:45 +0000 (15:44 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 16 Oct 2013 12:44:45 +0000 (15:44 +0300)
commitae29f34434a6acb728256e46a1f7226e72f3cdf9
tree79c6f69d5eb48e68c854164dc4feef5527117032
parent79b05b511a1629f2a985431e1c9803d1501d9f88
ath10k: fix add_interface failure handling

If something failed along add_interface() setup it
was possible to leak a vdev id, vdev and peer.

This could end up with leaked FW state or FW crash
(assuming add_interface() failure wasn't a result of
a crash).

kvalo: rebased, whitespace fixes

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