S390: fix kernel_commandline handling
commitcc3c7384ac61728e9949d5e64c10664fe4510179
authorChristian Borntraeger <borntraeger@de.ibm.com>
Sun, 22 Apr 2012 23:52:19 +0000 (22 23:52 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 1 May 2012 19:04:06 +0000 (1 21:04 +0200)
tree0b13d5afc9963f412f545a893462b21ac91db5db
parentb754e4fc1e8e68af975c545c38ebc3b001ebc98f
S390: fix kernel_commandline handling

The current handling of kernel parameters is broken. The pointer
is always valid, even if no -kernel or -append is specified.
We must check if the kernel rom address is valid instead,
otherwise qemu might segfault.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/s390-virtio.c