]> git.baikalelectronics.ru Git - kernel.git/commit
net: adaptec: starfire: add checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 27 Jan 2017 22:07:30 +0000 (01:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 00:04:11 +0000 (19:04 -0500)
commite6c3d044bbe85c8d75c4232085d8bab60d11abde
tree5b9787eb26cd81f9ca16cf3d53f70cf8bf03c5db
parentdd60a7e4277d8140464842fc0eddf72b570eafd0
net: adaptec: starfire: add checks for dma mapping errors

init_ring(), refill_rx_ring() and start_tx() don't 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/adaptec/starfire.c