aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src
diff options
context:
space:
mode:
authorEthan Milon <ethan.milon@eviden.com>2025-06-17 15:04:27 +0000
committerMichael S. Tsirkin <mst@redhat.com>2025-07-14 09:16:40 -0400
commit5788929e05e18ed5f76dc8ade4210f022c9ba5a1 (patch)
tree87bceefbd4dc0e994c22e7862383a4874d4198f4 /rust/qemu-api/src
parent5959b641c98b5ae9677e2c1d89902dac31b344d9 (diff)
downloadqemu-5788929e05e18ed5f76dc8ade4210f022c9ba5a1.zip
qemu-5788929e05e18ed5f76dc8ade4210f022c9ba5a1.tar.gz
qemu-5788929e05e18ed5f76dc8ade4210f022c9ba5a1.tar.bz2
amd_iommu: Fix truncation of oldval in amdvi_writeq
The variable `oldval` was incorrectly declared as a 32-bit `uint32_t`. This could lead to truncation and incorrect behavior where the upper read-only 32 bits are significant. Fix the type of `oldval` to match the return type of `ldq_le_p()`. Cc: qemu-stable@nongnu.org Fixes: d29a09ca6842 ("hw/i386: Introduce AMD IOMMU") Signed-off-by: Ethan Milon <ethan.milon@eviden.com> Message-Id: <20250617150427.20585-9-alejandro.j.jimenez@oracle.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'rust/qemu-api/src')
0 files changed, 0 insertions, 0 deletions