|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.6] missing vgic_unlock_rank in gic_remove_irq_from_guest
commit 57e3ac3a0bceb33093bed584194c7cf163648441
Author: Stefano Stabellini <sstabellini@xxxxxxxxxx>
AuthorDate: Thu Dec 8 16:59:28 2016 -0800
Commit: Stefano Stabellini <sstabellini@xxxxxxxxxx>
CommitDate: Fri Dec 9 11:36:32 2016 -0800
missing vgic_unlock_rank in gic_remove_irq_from_guest
Add missing vgic_unlock_rank on the error path in
gic_remove_irq_from_guest.
Coverity-ID: 1381843
Signed-off-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Reviewed-by: Julien Grall <julien.grall@xxxxxxx>
---
xen/arch/arm/gic.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
index 1757193..d344756 100644
--- a/xen/arch/arm/gic.c
+++ b/xen/arch/arm/gic.c
@@ -195,7 +195,10 @@ int gic_remove_irq_from_guest(struct domain *d, unsigned
int virq,
*/
if ( test_bit(_IRQ_INPROGRESS, &desc->status) ||
!test_bit(_IRQ_DISABLED, &desc->status) )
+ {
+ vgic_unlock_rank(v_target, rank, flags);
return -EBUSY;
+ }
}
clear_bit(_IRQ_GUEST, &desc->status);
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.6
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |