]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix error handling in pci_probe
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 10 Apr 2015 13:01:27 +0000 (13:01 +0000)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 17 Apr 2015 06:32:40 +0000 (09:32 +0300)
commit6be5aebc1edb96bba44cbcb90063c439b216410e
tree5ac06dc2be922ff7067873db8b50a6f67ef435fb
parent20a5775f68fb30d5a1180478237ffda63102db6e
ath10k: fix error handling in pci_probe

If chip_id wasn't recognized clean up code wasn't
executed properly. It would skip freeing memory
causing a leak and irqs causing possibly MSI
warning splats later or even kernel crashes.

Fixes: 6080de8027d8 ("ath10k: reset chip before reading chip_id in probe")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c