mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
The virtqueue_resize() function was not correctly propagating error codes
from its internal resize helper functions, specifically
virtqueue_resize_packet() and virtqueue_resize_split(). If these helpers
returned an error, but the subsequent call to virtqueue_enable_after_reset()
succeeded, the original error from the resize operation would be masked.
Consequently, virtqueue_resize() could incorrectly report success to its
caller despite an underlying resize failure.
This change restores the original code behavior:
if (vdev->config->enable_vq_after_reset(_vq))
return -EBUSY;
return err;
Fix: commit
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| virtio.c | ||
| virtio_anchor.c | ||
| virtio_balloon.c | ||
| virtio_debug.c | ||
| virtio_dma_buf.c | ||
| virtio_input.c | ||
| virtio_mem.c | ||
| virtio_mmio.c | ||
| virtio_pci_admin_legacy_io.c | ||
| virtio_pci_common.c | ||
| virtio_pci_common.h | ||
| virtio_pci_legacy.c | ||
| virtio_pci_legacy_dev.c | ||
| virtio_pci_modern.c | ||
| virtio_pci_modern_dev.c | ||
| virtio_ring.c | ||
| virtio_rtc_arm.c | ||
| virtio_rtc_class.c | ||
| virtio_rtc_driver.c | ||
| virtio_rtc_internal.h | ||
| virtio_rtc_ptp.c | ||
| virtio_vdpa.c | ||