]> git.proxmox.com Git - qemu.git/commit
do not check pointers after dereferencing them
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 May 2013 12:00:27 +0000 (14:00 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 11 Jun 2013 22:28:24 +0000 (17:28 -0500)
commitbaa8a8b44452f4a51de5ba33089dd8882d3fa545
tree3a94f1f255986a13f386b869c599342bc66ce851
parent327e75b537c3b7bc25ac83bedeb4a40c782796c3
do not check pointers after dereferencing them

Two instances, both spotted by Coverity.  In one, two blocks were
swapped.  In the other, the check is not needed anymore.

Cc: qemu-stable@nongnu.org
Cc: qemu-trivial@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit a4cc73d629d43c8a4d171d043ff229a959df3ca6)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
monitor.c
savevm.c