Re: [Qemu-devel] [PATCH] Avoid segmentation fault for qdev device not found

2011-05-13 Thread Markus Armbruster
Glauber Costa writes: > qdev_try_create will cope well with a NULL bus, since it will assume > the main system bus by default. qdev_create, however, wants to print > a message, in which it instantiates the bus name. That simple and at > first inoffensive message will generate a segmentation found

[Qemu-devel] [PATCH] Avoid segmentation fault for qdev device not found

2011-05-12 Thread Glauber Costa
qdev_try_create will cope well with a NULL bus, since it will assume the main system bus by default. qdev_create, however, wants to print a message, in which it instantiates the bus name. That simple and at first inoffensive message will generate a segmentation found if the reason for failure is a