]> 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)
commitfe8c9852774fdc4b69983760341e1605f2ca7717
tree360bd1bbdbdb7dac6f38f9cc3a954431898da5ba
parentbb5bfefa451ec30b114837f6f057b92a43856cce
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: 8cc29470c69aa ("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