ath10k: fix dma_mapping_error() handling
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 19 Aug 2015 11:10:43 +0000 (13:10 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 26 Aug 2015 08:04:44 +0000 (11:04 +0300)
commit5e55e3cbd1042cffa6249f22c10585e63f8a29bf
tree625a8b7976365f47aee86ea36e353eccb1b9f85b
parent503422d95248c1d9698735bb5803b70aa51b18ef
ath10k: fix dma_mapping_error() handling

The function returns 1 when DMA mapping fails. The
driver would return bogus values and could
possibly confuse itself if DMA failed.

Fixes: 767d34fc67af ("ath10k: remove DMA mapping wrappers")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htc.c
drivers/net/wireless/ath/ath10k/htt_tx.c
drivers/net/wireless/ath/ath10k/pci.c
drivers/net/wireless/ath/ath10k/wmi.c