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:Daniel Mentz <danielmentz@google.com>
Loading
Please sign in to comment