Message ID | 2012062994.19566.1497261793670.JavaMail.root@smtp4.opayq.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xen/common/compat/memory.c b/xen/common/compat/memory.c index a31fa9b..8e257a0 100644 --- a/xen/common/compat/memory.c +++ b/xen/common/compat/memory.c @@ -249,12 +249,14 @@ int compat_memory_op(unsigned int cmd, XEN_GUEST_HAND= =3D LE_PARAM(void) compat) unsigned int limit =3D3D (COMPAT_ARG_XLAT_SIZE - sizeof(*nat.a= tp=3D b)) / (sizeof(nat.atpb->idxs.p) + sizeof(nat.= =3D atpb->gpfns.p)); /* Use an intermediate variable to suppress warnings on old gc= =3D c: */ - unsigned int size =3D3D cmp.atpb.size; + unsigned int size; xen_ulong_t *idxs =3D3D (void *)(nat.atpb + 1); xen_pfn_t *gpfns =3D3D (void *)(idxs + limit);