mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
virtio_ring: Cut and paste bugs in vring_create_virtqueue_packed()
[ Upstream commit ae93d8ea0fa701e84ab9df0db9fb60ec6c80d7b8 ]
There is a copy and paste bug in the error handling of this code and
it uses "ring_dma_addr" three times instead of "device_event_dma_addr"
and "driver_event_dma_addr".
Fixes: 1ce9e6055f (" virtio_ring: introduce packed ring support")
Reported-by: Robert Buhren <[email protected]>
Reported-by: Felicitas Hetzelt <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/X8pGRJlEzyn+04u2@mwanda
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
372f06cd6b
commit
5f70910832
1 changed files with 2 additions and 2 deletions
|
|
@ -1676,9 +1676,9 @@ err_desc_extra:
|
|||
err_desc_state:
|
||||
kfree(vq);
|
||||
err_vq:
|
||||
vring_free_queue(vdev, event_size_in_bytes, device, ring_dma_addr);
|
||||
vring_free_queue(vdev, event_size_in_bytes, device, device_event_dma_addr);
|
||||
err_device:
|
||||
vring_free_queue(vdev, event_size_in_bytes, driver, ring_dma_addr);
|
||||
vring_free_queue(vdev, event_size_in_bytes, driver, driver_event_dma_addr);
|
||||
err_driver:
|
||||
vring_free_queue(vdev, ring_size_in_bytes, ring, ring_dma_addr);
|
||||
err_ring:
|
||||
|
|
|
|||
Loading…
Reference in a new issue