vmxnet3: fix checks for dma mapping errors
Orabug:
25639933
vmxnet3_drv does not check dma_addr with dma_mapping_error()
after mapping dma memory. The patch adds the checks and
tries to handle failures.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Shrikrishna Khare <skhare@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit
5738a09d58d5ad2871f1f9a42bf6a3aa9ece5b3c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>