Commit be7e6112 authored by Keisuke Nishimura's avatar Keisuke Nishimura Committed by Oliver Upton
Browse files

KVM: arm64: vgic-its: Add error handling in vgic_its_cache_translation



The return value of xa_store() needs to be checked. This fix adds an
error handling path that resolves the kref inconsistency on failure. As
suggested by Oliver Upton, this function does not return the error code
intentionally because the translation cache is best effort.

Fixes: 8201d102 ("KVM: arm64: vgic-its: Maintain a translation cache per ITS")
Signed-off-by: default avatarKeisuke Nishimura <keisuke.nishimura@inria.fr>
Suggested-by: default avatarOliver Upton <oliver.upton@linux.dev>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241130144952.23729-1-keisuke.nishimura@inria.fr


Signed-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
parent 03c7527e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment