ipw2x00: add checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 1 Jan 2016 23:12:38 +0000 (02:12 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Jan 2016 09:18:50 +0000 (11:18 +0200)
commitf7b7caa488eb209f1c63cc98104407c62753e406
tree9cc144d30464f1b37619a2f115936b2577334a9c
parentee548d4b1036aaba290a4eec68ba11590ad9cc73
ipw2x00: add checks for dma mapping errors

ipw2100_alloc_skb() and ipw2100_tx_send_data() do not check if mapping
dma memory succeed. The patch adds the checks and failure handling.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/ipw2x00/ipw2100.c