ath10k: add error handling to ath10k_pci_wait()
authorKalle Valo <kvalo@qca.qualcomm.com>
Thu, 17 Oct 2013 08:36:15 +0000 (11:36 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 21 Oct 2013 14:16:36 +0000 (17:16 +0300)
commitf3782744c9b50edf94d28e37a937ff84f267dfab
tree4cb69ccd0ac2d3f8594971282a8acc4b9177ba4a
parent60f85bea25d5e9915da8b0c87275143b317cec3b
ath10k: add error handling to ath10k_pci_wait()

ath10k_pci_wait() didn't notify any errors to callers, it
just printed a warning so add proper error handling. This fixes
a crash Ben reported:

ath10k: MSI-X interrupt handling (8 intrs)
ath10k: Unable to wakeup target
ath10k: target took longer 5000 us to wake up (awake count 1)
ath10k: Failed to get pcie state addr: -16
ath10k: early firmware event indicated
BUG: unable to handle kernel NULL pointer dereference at 0000000000000004
IP: [<ffffffffa06ae46c>] ath10k_ce_completed_send_next+0x47/0x122 [ath10k_pci]

Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c