diff options
author | Liran Alon <liran.alon@oracle.com> | 2020-03-12 18:54:31 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-10 12:09:54 -0400 |
commit | 23accdf162dcccb9fec9585a64ad01a87b13da5c (patch) | |
tree | 785921c36fa0e974145b52279f752e1e1b6648f8 /hw/isa/piix3.c | |
parent | d6048bfd12e24a0980ba2040cfaa2b101df3fa16 (diff) |
hw/i386/vmport: Assert vmport initialized before registering commands
vmport_register() is also called from other modules such as vmmouse.
Therefore, these modules rely that vmport is realized before those call
sites. If this is violated, vmport_register() will NULL-deref.
To make such issues easier to debug, assert in vmport_register() that
vmport is already realized.
Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Message-Id: <20200312165431.82118-17-liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/isa/piix3.c')
0 files changed, 0 insertions, 0 deletions