Peter Maydell <peter.mayd...@linaro.org> writes:

> If an attempt to create a qdev device on the default sysbus (by passing
> NULL as the bus to qdev_create) fails, print a useful error message
> rather than crashing trying to dereference a NULL pointer.

The special case bus == NULL is ugly, and should be removed.  But
rejecting simple bug fixes because we want some cleanup would be
blackmail, and only hurts users.

Reviewed-by: Markus Armbruster <arm...@redhat.com>

Reply via email to