]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Alter condition to avoid possible NULL deref
authorJohn Ferlan <jferlan@redhat.com>
Fri, 9 Feb 2018 13:52:10 +0000 (08:52 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 12 Feb 2018 13:08:48 +0000 (08:08 -0500)
commita1bce9ef8632cd2015c800e4e2c0b0ed08709311
treebb44fa1e5a09b79024ca507a95a0223a9a87edfa
parent9dac9509490d5452caa1c76fde075e4d13dfa468
qemu: Alter condition to avoid possible NULL deref

Commit 'f0f2a5ec2' neglected to adjust the if condition to split
out the possibility that the @watchdog is NULL when altering the
message to add detail about the model.

Just split out the condition and use previous/original message, but
with the new message code.

Found by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_hotplug.c