]> git.proxmox.com Git - mirror_qemu.git/commit
bootdevice: fix segment fault when booting guest with '-kernel' and '-initrd'
authorGonglei <arei.gonglei@huawei.com>
Fri, 27 Feb 2015 01:49:44 +0000 (09:49 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Feb 2015 14:15:56 +0000 (15:15 +0100)
commit57fe6a6e4a050f639ac3d2f7c32b4cd3bcde3978
tree8a8fb97642e6d2a62551b56aedc178dbff0185b6
parent2ed1ebcf65edf6757d8904000889ce52cc0a9d1b
bootdevice: fix segment fault when booting guest with '-kernel' and '-initrd'

Reproducer:

 $./qemu-system-x86_64 --enable-kvm -kernel /home/vmlinuz-2.6.32.12-0.7-default \
  -initrd /home/initrd-2.6.32.12-0.7-default -append \
 "root=/dev/ram rw console=ttyS0,115200" -dtb guest.dtb -vnc :10 --monitor stdio -smp 2
QEMU 2.2.50 monitor - type 'help' for more information
(qemu) Segmentation fault (core dumped)

Reported-by: Edivaldo de Araujo Pereira <edivaldoapereira@yahoo.com.br>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Message-Id: <1425001784-6752-1-git-send-email-arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bootdevice.c