]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
vmxnet3: fix checks for dma mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 27 Nov 2015 22:29:30 +0000 (01:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Dec 2015 20:19:16 +0000 (15:19 -0500)
commit5738a09d58d5ad2871f1f9a42bf6a3aa9ece5b3c
treeaa5c240ceb83e10634e33e6ca7e7dd62aff94115
parentee9159ddce14bc1dec9435ae4e3bd3153e783706
vmxnet3: fix checks for dma mapping errors

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>
drivers/net/vmxnet3/vmxnet3_drv.c