]> git.proxmox.com Git - mirror_qemu.git/commit
hw/i386/acpi: Assert a pointer is not null BEFORE using it
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 27 Apr 2019 14:40:25 +0000 (16:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 May 2019 13:19:32 +0000 (15:19 +0200)
commit6fa5171f4fb483f9c6b417c4fda3ed21549c4113
tree630937fed04feb51c0735abc424ea00bdade9bcf
parent81c48dd79655296f5bf94823e8ac95902a8ac3e4
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>
hw/i386/acpi-build.c