aboutsummaryrefslogtreecommitdiffstats
path: root/hw/usb/dev-hub.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-04-27 16:40:25 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-05-17 15:19:32 +0200
commit6fa5171f4fb483f9c6b417c4fda3ed21549c4113 (patch)
tree630937fed04feb51c0735abc424ea00bdade9bcf /hw/usb/dev-hub.c
parenthw/i386/acpi: Add object_resolve_type_unambiguous to improve modularity (diff)
downloadqemu-6fa5171f4fb483f9c6b417c4fda3ed21549c4113.tar.xz
qemu-6fa5171f4fb483f9c6b417c4fda3ed21549c4113.zip
hw/i386/acpi: Assert a pointer is not null BEFORE using it
Commit 72c194f7e75c added a non-null check on the 'obj' pointer. Later, commit 500b11ea5095 added code which uses the 'obj' pointer _before_ the assertion check. Move the assertion _before_ the pointer use. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190427144025.22880-4-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions