diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-23 16:56:17 +0100 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2012-12-03 14:26:56 -0600 |
commit | 5e19e498b4b2a31c985dc96b1aff078c34e40488 (patch) | |
tree | 7ddb202ba14ef6766556cf03eb30d42bcd1773d9 /qemu-aio.h | |
parent | 4fb9656b9d62ce348656a7184ac7861d70c490a7 (diff) | |
download | qemu-5e19e498b4b2a31c985dc96b1aff078c34e40488.tar.gz |
qom: dynamic_cast of NULL is always NULL
Trying to cast a NULL value will cause a crash. Returning
NULL is also sensible, and it is also what the type-unsafe
DO_UPCAST macro does.
Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit b7f43fe46029d8fd0594cd599fa2599dcce0f553)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qemu-aio.h')
0 files changed, 0 insertions, 0 deletions