Skip to contentSkip to conversation

pc-bios/s390x: Initialize cdrom type to false for each IPL device

PATCH In review [email protected] 2 participants 2 messages Nov 8, 2024 – Nov 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc-bios/s390x: Initialize cdrom type to false for each IPL device

From: Jared Rossi <[email protected]>

Clear information about cdrom type so that current IPL device isn't tainted by stale data from previous devices.

---
 pc-bios/s390-ccw/main.c | 1 +
 1 file changed, 1 insertion(+)
pc-bios/s390-ccw/main.c +1 -0
index a4d1c05aac..7509755e36 100644
@@ -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) {
Signature · 1 line
2.45.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · On 08/11/2024 20.41, [email protected] wrote:

From: Jared Rossi <[email protected]>

Clear information about cdrom type so that current IPL device isn't tainted by stale data from previous devices.

---
  pc-bios/s390-ccw/main.c | 1 +
  1 file changed, 1 insertion(+)
pc-bios/s390-ccw/main.c +0 -0
index a4d1c05aac..7509755e36 100644

pc-bios/s390-ccw/main.c static bool find_boot_device(void) · line 248

Quoted 7 lines
pc-bios/s390-ccw/main.c +1 -0
@@ -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) {