Commit 2cc84bbe authored by Daniel Mentz's avatar Daniel Mentz Committed by Will Deacon
Browse files

ANDROID: iommu/arm-smmu-v3-kvm: Wrap around when writing to cmdq



When we write more than a single command to the command queue, we need
to wrap around when we hit the end of the command queue. Otherwise,
we'll write to memory locations that are past the end of the command
queue.

Bug: 421785718
Fixes: dd32b792 ("BACKPORT: FROMLIST: iommu/arm-smmu-v3-kvm: Support command queue batching")
Change-Id: Ia6246e3e0fc6185b2373664e90c119051d1c55fc
Signed-off-by: default avatarDaniel Mentz <danielmentz@google.com>
parent b32e32bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment