]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
xen/arm: Fix return value when write is ignored in VGIC
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 26 Apr 2013 13:16:31 +0000 (14:16 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 26 Apr 2013 14:56:32 +0000 (15:56 +0100)
If a write is ignored, the function should return success.

Currently Xen will throw a data abort exception if the write in VGIC is
ignored.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/vgic.c

index 4d8da0242e307f1071c17a5452414be66bec9725..a984621e89d3adae74c8d64aa53d48f8fd476053 100644 (file)
@@ -550,7 +550,7 @@ bad_width:
 
 write_ignore:
     if ( dabt.size != 2 ) goto bad_width;
-    return 0;
+    return 1;
 }
 
 static int vgic_distr_mmio_check(struct vcpu *v, paddr_t addr)