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)
commit61aeecea40afb2b89933e27cd4adb10fc2e75cfd
tree360bd1bbdbdb7dac6f38f9cc3a954431898da5ba
parent849a742c59a3d597473c0232f9c2506c69eeef14
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: b0eb57cb97e78 ("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