Igor Mammedov 120dc38f61 qdev: skip bus check for bus-less devices in qdev_unplug()
Since commit 2f7bd829db "qdev: Fix device_add bus assumptions"
it's possible to device_add bus-less device, but if such device is
unplugged it will dereference NULL parent_bus in qdev_unplug().

Fix it by taking in account that parent_bus might be NULL and
skipping bus check.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 1367587536-14964-1-git-send-email-imammedo@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-05-03 12:05:33 -05:00
..
2013-04-24 11:50:20 -05:00
2013-04-29 08:27:47 -05:00
2013-05-01 13:06:07 +02:00
2013-04-29 08:27:49 -05:00
2013-04-29 08:27:47 -05:00
2013-04-19 11:36:33 +02:00
2013-04-29 08:27:47 -05:00
2013-04-29 08:27:50 -05:00
2013-05-01 13:06:07 +02:00
2013-04-24 11:50:18 -05:00
2013-04-20 17:54:52 +00:00
2013-04-19 11:36:33 +02:00
2013-05-01 20:55:21 +04:00
2013-04-08 18:13:10 +02:00
2013-04-12 14:33:20 +02:00
2013-04-20 17:54:52 +00:00
2013-04-27 10:35:30 +00:00
2013-05-01 13:04:18 +02:00
2013-04-29 08:27:50 -05:00