wan: dscc4: add checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 10 Aug 2017 22:55:20 +0000 (01:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:42:28 +0000 (14:42 -0700)
commit6aa200058e4df8a60681ddd67d7932fdf2ce58ab
tree6cf903dc180d4e3e7361b956149947972a4c47c5
parent839da4d98960bcc68e6b7b945b33ad3916ec1e92
wan: dscc4: 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: David S. Miller <davem@davemloft.net>
drivers/net/wan/dscc4.c