]> git.proxmox.com Git - qemu.git/commit
qdev: sysbus_get_default must not return a NULL pointer (fix regression)
authorStefan Weil <weil@mail.berlios.de>
Thu, 16 Dec 2010 18:33:22 +0000 (19:33 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 19 Dec 2010 12:06:17 +0000 (14:06 +0200)
commit68694897e55ebd229898d4b6546877ccea500954
tree0853f00172ef7411e9f692846e49ce258955f04f
parentaf0669f0edbbcb8c17f7c2b919089485c8327f4f
qdev: sysbus_get_default must not return a NULL pointer (fix regression)

Every system should have some sort of main system bus,
so sysbus_get_default should always return a valid bus.

Without this patch, at least mipssim and malta no longer
start but raise a null pointer access exception (caused by
commit ec990eb622ad46df5ddcb1e94c418c271894d416).

Cc: Anthony Liguori <anthony@codemonkey.ws>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/qdev.c