Commit 0226417b authored by Vincent Donnefort's avatar Vincent Donnefort
Browse files

ANDROID: KVM: arm64: Fix un-initialized iommu into mgt_allocator_ops



iommu_host_pool is only initialized after the iommu driver has (i.e.
kvm_iommu_ops is set). Meanwhile, mgt_allocator_ops can be called at any
time. There's therefore a need to check if the driver (and by extension
iommu_host_pool) has been initialized into each mgt_allocator_ops.

Bug: 277989609
Bug: 278749606
Bug: 330300498
Fixes: 60730d5e ("ANDROID: KVM: arm64: Add {refill,recliam}_hyp_pool")
Change-Id: I7afe1628ec4898e203c89b98f1708cea1593175d
Signed-off-by: default avatarVincent Donnefort <vdonnefort@google.com>
parent c14320ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment