virtio-ring: fix DMA metadata flags
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 26 Oct 2021 13:31:00 +0000 (15:31 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2021 19:54:34 +0000 (15:54 -0400)
commit890d33561337ffeba0d8ba42517e71288cfee2b6
tree94a375037aac6b7df3801c2840a2c59901ba5cca
parent0943aacf5ae10471b68a702c022b42c89e91ba9e
virtio-ring: fix DMA metadata flags

The flags are currently overwritten, leading to the wrong direction
being passed to the DMA unmap functions.

Fixes: 72b5e8958738aaa4 ("virtio-ring: store DMA metadata in desc_extra for split virtqueue")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20211026133100.17541-1-vincent.whitchurch@axis.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/virtio/virtio_ring.c