Skip to contentSkip to conversation

tools/libxc: Fix missing break in xc_domain_bind_pt_irq()

PATCH In review Andrew Cooper 3 participants 4 messages Jun 18, 2014 – Jul 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libxc: Fix missing break in xc_domain_bind_pt_irq()

c/s 568da4f8 "pt-irq fixes and improvements" accidentally forgot a break when refactoring xc_domain_bind_pt_irq() which results in bind->u.pci.bus being clobbered by isa_irq for PCI and MSI_TRANSLATE interrupts.

Coverity-ID: 1223210

CC Jan Beulich <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
---
 tools/libxc/xc_domain.c |    1 +
 1 file changed, 1 insertion(+)
tools/libxc/xc_domain.c +1 -0
index ef470a5..d5d6d12 100644
@@ -1711,6 +1711,7 @@ int xc_domain_bind_pt_irq(
         bind->u.pci.bus = bus;
         bind->u.pci.device = device;
         bind->u.pci.intx = intx;
+        break;
     case PT_IRQ_TYPE_ISA:
         bind->u.isa.isa_irq = isa_irq;
         break;
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line

Andrew Cooper <[email protected]> 06/18/14 7:44 PM >>>

c/s 568da4f8 "pt-irq fixes and improvements" accidentally forgot a break when refactoring xc_domain_bind_pt_irq() which results in bind->u.pci.bus being clobbered by isa_irq for PCI and MSI_TRANSLATE interrupts.

Urgh - I'm almost certain I must have sent a stale patch then. Thanks for fixing this!

Jan

Acked-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper

Andrew Cooper writes ("[PATCH] tools/libxc: Fix missing break in xc_domain_bind_pt_irq()"):

Quoted 9 lines

c/s 568da4f8 "pt-irq fixes and improvements" accidentally forgot a break when refactoring xc_domain_bind_pt_irq() which results in bind->u.pci.bus being clobbered by isa_irq for PCI and MSI_TRANSLATE interrupts.

Coverity-ID: 1223210

CC Jan Beulich <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
#3 lore raw

Ian Jackson writes ("Re: [PATCH] tools/libxc: Fix missing break in xc_domain_bind_pt_irq()"):

Quoted 5 lines

Andrew Cooper writes ("[PATCH] tools/libxc: Fix missing break in xc_domain_bind_pt_irq()"):

Quoted 4 lines

c/s 568da4f8 "pt-irq fixes and improvements" accidentally forgot a break when refactoring xc_domain_bind_pt_irq() which results in bind->u.pci.bus being clobbered by isa_irq for PCI and MSI_TRANSLATE interrupts.

Quoted 8 lines
Quoted 5 lines

Coverity-ID: 1223210

CC Jan Beulich <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>

This had found its way onto my backport list, but the bug (in 568da4f8) is not in 4.4.

Ian.