natsemi: add checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 19 Dec 2015 12:13:49 +0000 (15:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Dec 2015 17:58:46 +0000 (12:58 -0500)
commit45af55006c2c8f49bddc6296224e70d752a1372c
tree7bf80be87d7ee0b4a152b0dcab87fb5b3b88e777
parent179ccc0a73641ffd24e44ff10a7bd494efe98d8d
natsemi: add checks for dma mapping errors

refill_rx() and start_tx() 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/natsemi.c