Re: [PATCH] vdpa_sim: Fix DMA mask

2020-10-27 Thread Jason Wang
On 2020/10/28 上午1:59, Laurent Vivier wrote: Since commit f959dcd6ddfd ("dma-direct: Fix potential NULL pointer dereference") an error is reported when we load vdpa_sim and virtio-vdpa: [ 129.351207] net eth0: Unexpected TXQ (0) queue failure: -12 It seems that dma_mask is not initialized.

[PATCH] vdpa_sim: Fix DMA mask

2020-10-27 Thread Laurent Vivier
Since commit f959dcd6ddfd ("dma-direct: Fix potential NULL pointer dereference") an error is reported when we load vdpa_sim and virtio-vdpa: [ 129.351207] net eth0: Unexpected TXQ (0) queue failure: -12 It seems that dma_mask is not initialized. This patch initializes dma_mask() and calls