]> git.proxmox.com Git - mirror_qemu.git/commit
pc-bios/s390-ccw: fix loadparm initialization and int conversion
authorCollin Walling <walling@linux.ibm.com>
Mon, 16 Apr 2018 16:56:08 +0000 (12:56 -0400)
committerThomas Huth <thuth@redhat.com>
Wed, 2 May 2018 09:27:14 +0000 (11:27 +0200)
commit074afe60d4c8167dcfaee7aca1065c6360449eaa
tree4d860243718b454f3ac3501d10b90e8b04a40898
parent6df2a829dfacfbf10a78199ad4b023a7ea65d9cd
pc-bios/s390-ccw: fix loadparm initialization and int conversion

Rename the loadparm char array in main.c to loadparm_str and
increased the size by one byte to account for a null termination
when converting the loadparm string to an int  via atoui. We
also allow the boot menu to be enabled when loadparm is set to
an empty string or a series of spaces.

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reported-by: Vasily Gorbik <gor@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/ipl.c
pc-bios/s390-ccw/main.c