pc-bios/s390x: Initialize cdrom type to false for each IPL device
authorJared Rossi <jrossi@linux.ibm.com>
Fri, 8 Nov 2024 19:41:36 +0000 (14:41 -0500)
committerThomas Huth <thuth@redhat.com>
Mon, 18 Nov 2024 16:14:35 +0000 (17:14 +0100)
Clear information about cdrom type so that current IPL device isn't tainted
by stale data from previous devices.

Signed-off-by: Jared Rossi <jrossi@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20241108194136.2833932-1-jrossi@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/main.c

index a4d1c05aacc6a0da097a41bd805b2fa2f03f0a32..7509755e36fd0b143dd9e98bce97ae4e9eb9f35e 100644 (file)
@@ -242,6 +242,7 @@ static bool find_boot_device(void)
 static int virtio_setup(void)
 {
     VDev *vdev = virtio_get_device();
+    vdev->is_cdrom = false;
     int ret;
 
     switch (vdev->senseid.cu_model) {