]> git.baikalelectronics.ru Git - kernel.git/commit
vmxnet3: set the DMA mask before the first DMA map operation
authorhpreg@vmware.com <hpreg@vmware.com>
Mon, 14 May 2018 12:14:34 +0000 (08:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 May 2018 02:43:57 +0000 (22:43 -0400)
commit772e165c8a82fa865568b5056e1fcec3a2af2164
tree360bd1bbdbdb7dac6f38f9cc3a954431898da5ba
parent30a497604e447726173526243c07a4e12709fb42
vmxnet3: set the DMA mask before the first DMA map operation

The DMA mask must be set before, not after, the first DMA map operation, or
the first DMA map operation could in theory fail on some systems.

Fixes: c3e78f533b24c ("VMXNET3: Add support for virtual IOMMU")
Signed-off-by: Regis Duchesne <hpreg@vmware.com>
Acked-by: Ronak Doshi <doshir@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_int.h