adm80211: add checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 2 Dec 2016 21:52:46 +0000 (00:52 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 5 Dec 2016 11:10:53 +0000 (13:10 +0200)
commitd15697de60db5570532fdedb8e13b2251d65b8e3
treebf108bd8a2c05aef9e4fd1eca7a16f628f3dfd5e
parente54a8c4b5753d1c427c8fec7f9e43e7c22ec00cc
adm80211: add checks for dma mapping errors

The driver does 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/admtek/adm8211.c