]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit003b86da18831784f97e9309231bba1162bca3a2
tree625a8b7976365f47aee86ea36e353eccb1b9f85b
parent118381d4a0863a8b5fcee7b6d127a5dc41a9d24c
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: 2db69fb88058 ("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