|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 1.3 1/2] qom: dynamic_cast of NULL is always NULL |
Date: | Fri, 23 Nov 2012 17:51:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
Il 23/11/2012 17:30, Andreas Färber ha scritto: > If having SCSI_BUS() return NULL was your intent you would not have > needed to switch to object_dynamic_cast in your second patch. :) In the second patch I needed object_dynamic_cast in case the bus was not a SCSI bus at all. For example: $ qemu-system-x86_64 -S -monitor stdio -device piix3-usb-uhci (qemu) drive_add 4 if=scsi Object 0x7f2dcdcfe380 is not an instance of type SCSI Aborted Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |