Skip to content

Commit c04f174

Browse files
aloktiwaoupton
authored andcommitted
KVM: arm64: vgic: fix incorrect spinlock API usage
The function vgic_flush_lr_state() is calling _raw_spin_unlock() instead of the proper raw_spin_unlock(). _raw_spin_unlock() is an internal low-level API and should not be used directly; using raw_spin_unlock() ensures proper locking semantics in the vgic code. Fixes: 8fa3adb ("KVM: arm/arm64: vgic: Make vgic_irq->irq_lock a raw_spinlock") Signed-off-by: Alok Tiwari <[email protected]> Acked-by: Marc Zyngier <[email protected]> Message-ID: <[email protected]> Signed-off-by: Oliver Upton <[email protected]>
1 parent 51d165e commit c04f174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/vgic/vgic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ static void vgic_flush_lr_state(struct kvm_vcpu *vcpu)
854854
* the AP list has been sorted already.
855855
*/
856856
if (multi_sgi && irq->priority > prio) {
857-
_raw_spin_unlock(&irq->irq_lock);
857+
raw_spin_unlock(&irq->irq_lock);
858858
break;
859859
}
860860

0 commit comments

Comments
 (0)