diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2025-07-26 08:17:58 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-08-07 11:15:54 -0600 |
commit | 4b97de0e28fc215d3f41bb01f3410baa5e9243d8 (patch) | |
tree | d21c2a8b93a0d0bc1cabcfe79e498a823ae34324 /common/cmd_scsi.c | |
parent | c60898c9c6988e34d33a7c5d5b79c0bcc14da719 (diff) |
virtio: fix freeing of virtio ring buffer
If the allocation if the bounce buffer fails, virtio_free_pages is called
with a random value from the stack.
Ensure that vring.size is initialized.
Fixes: 37e53db38bdb ("virtio: Allocate bounce buffers for devices with VIRTIO_F_IOMMU_PLATFORM")
Addresses-Coverity-ID: 453314 Uninitialized scalar variable
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'common/cmd_scsi.c')
0 files changed, 0 insertions, 0 deletions