[PATCH 6.15 101/263] LoongArch: KVM: Avoid overflow with array index