Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b3289eb authored by Eric Auger's avatar Eric Auger Committed by Marc Zyngier
Browse files

KVM: arm: irqfd: fix value returned by kvm_irq_map_gsi



irqfd/arm curently does not support routing. kvm_irq_map_gsi is
supposed to return all the routing entries associated with the
provided gsi and return the number of those entries. We should
return 0 at this point.

Signed-off-by: default avatarEric Auger <eric.auger@linaro.org>
Acked-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent b79013b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2141,7 +2141,7 @@ int kvm_irq_map_gsi(struct kvm *kvm,
		    struct kvm_kernel_irq_routing_entry *entries,
		    int gsi)
{
	return gsi;
	return 0;
}

int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin)