Commit 3c6d1d82 authored by Daniel Mentz's avatar Daniel Mentz Committed by Mostafa Saleh
Browse files

ANDROID: KVM: arm64: iommu: Avoid ref count leak when __pkvm_host_use_dma fails



In kvm_iommu_map_pages, release the reference to the domain if we return
early because __pkvm_host_use_dma failed.

Bug: 401132481
Fixes: a737b7d0 ("ANDROID: KVM: arm64: iommu: Reduce the logic in generic code")
Change-Id: Ib792425a726513f5a6b8198aa3d0208aa43b0502
Signed-off-by: default avatarDaniel Mentz <danielmentz@google.com>
parent 4cf57528
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment