[PATCH 0/2] qemu: Don't crash on empty USB cdrom hotplug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the main crash cause and also forbid empty USB devices as qemu
doesn't accept them.

Peter Krempa (2):
  qemu: block: Allow NULL 'data' in 'qemuBlockStorageSourceChainDetach'
  qemu: validate: Reject empty USB disks

 src/qemu/qemu_block.c                         |  3 ++
 src/qemu/qemu_validate.c                      |  6 ++++
 .../disk-cdrom-bus-other.x86_64-latest.args   |  5 ++--
 .../disk-cdrom-bus-other.x86_64-latest.xml    |  5 ----
 .../qemuxmlconfdata/disk-cdrom-bus-other.xml  |  5 ----
 .../disk-cdrom-usb-empty.x86_64-latest.err    |  1 +
 .../qemuxmlconfdata/disk-cdrom-usb-empty.xml  | 29 +++++++++++++++++++
 tests/qemuxmlconftest.c                       |  1 +
 8 files changed, 42 insertions(+), 13 deletions(-)
 create mode 100644 tests/qemuxmlconfdata/disk-cdrom-usb-empty.x86_64-latest.err
 create mode 100644 tests/qemuxmlconfdata/disk-cdrom-usb-empty.xml

-- 
2.46.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux