aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/arm/vgic/vgic-its.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2016-07-17 11:27:23 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2016-07-18 18:15:16 +0100
commitd97594e6bc1b4aaad3ccae3ef678513b63dd5221 (patch)
tree921513cb42ad71bfb73eb1652d4158e3492f60df /virt/kvm/arm/vgic/vgic-its.c
parentirqchip/gicv3-its: Restore all cacheability attributes (diff)
downloadlinux-dev-d97594e6bc1b4aaad3ccae3ef678513b63dd5221.tar.xz
linux-dev-d97594e6bc1b4aaad3ccae3ef678513b63dd5221.zip
KVM: arm64: vgic-its: Generalize use of vgic_get_irq_kref
Instead of sprinkling raw kref_get() calls everytime we cannot do a normal vgic_get_irq(), use the existing vgic_get_irq_kref(), which does the same thing and is paired with a vgic_put_irq(). vgic_get_irq_kref is moved to vgic.h in order to be easily shared. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-its.c')
-rw-r--r--virt/kvm/arm/vgic/vgic-its.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c
index d8e8f14135b4..f427fa2f7263 100644
--- a/virt/kvm/arm/vgic/vgic-its.c
+++ b/virt/kvm/arm/vgic/vgic-its.c
@@ -80,7 +80,7 @@ static struct vgic_irq *vgic_add_lpi(struct kvm *kvm, u32 intid)
* call vgic_put_irq() on the returned pointer once it's
* finished with the IRQ.
*/
- kref_get(&irq->refcount);
+ vgic_get_irq_kref(irq);
goto out_unlock;
}