aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Rossi <jrossi@linux.ibm.com>2024-11-08 14:41:36 -0500
committerThomas Huth <thuth@redhat.com>2024-11-18 17:14:35 +0100
commit8c797468116d19940fb758efa749eae414616e3a (patch)
treeb90880994c4efaabe9e313759c5c7dc10febac5f
parent429442e52d94f890fa194a151e8cd649b04e9e63 (diff)
pc-bios/s390x: Initialize cdrom type to false for each IPL device
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>
-rw-r--r--pc-bios/s390-ccw/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
index a4d1c05aac..7509755e36 100644
--- a/pc-bios/s390-ccw/main.c
+++ b/pc-bios/s390-ccw/main.c
@@ -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) {