Skip to contentSkip to conversation

tools/libxc: Fix missing break from c/s b49a7517

PATCH In review Andrew Cooper 3 participants 3 messages May 8, 2015 – May 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libxc: Fix missing break from c/s b49a7517

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
CC Julien Grall <[email protected]>
---
 tools/libxc/xc_domain.c |    1 +
 1 file changed, 1 insertion(+)
tools/libxc/xc_domain.c +1 -0
index 273e1fd..a7079a1 100644
@@ -1978,6 +1978,7 @@ static int xc_domain_unbind_pt_irq_int(
         break;
     case PT_IRQ_TYPE_SPI:
         bind->u.spi.spi = spi;
+        break;
     default:
         errno = EINVAL;
         return -1;
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw

Hi Andrew,

Quoted 14 lines · Andrew Cooper
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
CC Julien Grall <[email protected]>
---
  tools/libxc/xc_domain.c |    1 +
  1 file changed, 1 insertion(+)
tools/libxc/xc_domain.c +0 -0
index 273e1fd..a7079a1 100644

tools/libxc/xc_domain.c static int xc_domain_unbind_pt_irq_int( · line 1981

Quoted 4 lines
tools/libxc/xc_domain.c +1 -0
@@ -1978,6 +1978,7 @@ static int xc_domain_unbind_pt_irq_int(
          break;
      case PT_IRQ_TYPE_SPI:
          bind->u.spi.spi = spi;
+        break;

Sorry, I haven't spot this one because I didn't exercise this code path.

I did the same mistake in xc_domain_bint_pt_irq_int which I fixed during testing.

Regards,

Signature · 1 line
Julien Grall
#2 lore raw
Quoted 24 lines · Julien Grall

Hi Andrew,

Quoted 14 lines · Andrew Cooper
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
CC Julien Grall <[email protected]>
---
  tools/libxc/xc_domain.c |    1 +
  1 file changed, 1 insertion(+)
tools/libxc/xc_domain.c +0 -0
index 273e1fd..a7079a1 100644

tools/libxc/xc_domain.c static int xc_domain_unbind_pt_irq_int( · line 1981

Quoted 4 lines
tools/libxc/xc_domain.c +1 -0
@@ -1978,6 +1978,7 @@ static int xc_domain_unbind_pt_irq_int(
          break;
      case PT_IRQ_TYPE_SPI:
          bind->u.spi.spi = spi;
+        break;

Sorry, I haven't spot this one because I didn't exercise this code path.

Quoted 4 lines

I did the same mistake in xc_domain_bint_pt_irq_int which I fixed during testing.

Acked + applied, thanks.

Ian.