]> git.ipfire.org Git - thirdparty/qemu.git/commit
tpm: Zero-init structure to avoid uninitialized variables in valgrind log
authorStefan Berger <stefanb@linux.ibm.com>
Tue, 30 Oct 2018 21:32:56 +0000 (17:32 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Apr 2019 01:36:21 +0000 (20:36 -0500)
commit69ec5ee5acb9e5276e9f2175bea6b46d928c3350
tree8a3d3fb0c7ea64487ddf89ba6e942c5b7401babe
parent16d1300e1a57cb26c08137a2c20bcf7018cfe00f
tpm: Zero-init structure to avoid uninitialized variables in valgrind log

Zero-init the ptm_loc structure so that we don't have fields that
are not initialised.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
(cherry picked from commit eff1fe9fd0cebe2293eea9597616f792b6b5ad18)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/tpm/tpm_emulator.c