aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/coverage/compare_gcov_json.py
diff options
context:
space:
mode:
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>2023-01-27 06:08:14 +0100
committerAnthony PERARD <anthony.perard@citrix.com>2023-03-06 11:27:37 +0000
commit3856734d80fbf46683e4080117ed961f5ab1300b (patch)
tree2c2c189ede0166da2fb40cec5ca47829d6767e44 /scripts/coverage/compare_gcov_json.py
parentxen/pt: reserve PCI slot 2 for Intel igd-passthru (diff)
downloadqemu-3856734d80fbf46683e4080117ed961f5ab1300b.tar.xz
qemu-3856734d80fbf46683e4080117ed961f5ab1300b.zip
hw/xen/xen_pt: fix uninitialized variable
xen_pt_config_reg_init() reads only that many bytes as the size of the register that is being initialized. It uses xen_host_pci_get_{byte,word,long} and casts its last argument to expected pointer type. This means for smaller registers higher bits of 'val' are not initialized. Then, the function fails if any of those higher bits are set. Fix this by initializing 'val' with zero. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Message-Id: <20230127050815.4155276-1-marmarek@invisiblethingslab.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions