From: Keir Fraser Date: Mon, 20 Sep 2010 17:53:18 +0000 (+0100) Subject: x86/hvm: fix extra size passed to __trace_var() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11457 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4276fde7f870feeec65f33e43b2e0cd5ae79b572;p=xen.git x86/hvm: fix extra size passed to __trace_var() While removing the casts on the last arguments to __trace_var() I noticed the bogus addition of 1 here. Signed-off-by: Jan Beulich --- diff --git a/xen/include/asm-x86/hvm/trace.h b/xen/include/asm-x86/hvm/trace.h index 57dacaf619..2245b7ab1d 100644 --- a/xen/include/asm-x86/hvm/trace.h +++ b/xen/include/asm-x86/hvm/trace.h @@ -72,7 +72,7 @@ _d.d[4]=(d5); \ _d.d[5]=(d6); \ __trace_var(TRC_HVM_ ## evt, cycles, \ - sizeof(u32)*count+1, &_d); \ + sizeof(*_d.d) * count, &_d); \ } \ } while(0)