diff options
author | Keisuke Nishimura <[email protected]> | 2024-11-30 15:49:53 +0100 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2024-12-03 16:22:10 -0800 |
commit | be7e611274224b23776469d7f7ce50e25ac53142 (patch) | |
tree | 0a9db03a68ccd2cbe157252f43cd56959e7fb56a /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 03c7527e97f73081633d773f9f8c2373f9854b25 (diff) |
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: 8201d1028caa ("KVM: arm64: vgic-its: Maintain a translation cache per ITS")
Signed-off-by: Keisuke Nishimura <[email protected]>
Suggested-by: Oliver Upton <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions