x86: make x86_mcinfo_reserve() clear its result buffer
authorJan Beulich <jbeulich@suse.com>
Mon, 4 Mar 2013 09:25:24 +0000 (10:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Mar 2013 09:25:24 +0000 (10:25 +0100)
commit81881483859fabf918afe6da8e1a679a37479537
treeb63b03e4c7f8314a972663a44c2e01837238d43a
parent50c2f44e138ec1677059429be65f82b650ed6b88
x86: make x86_mcinfo_reserve() clear its result buffer

... instead of all but one of its callers.

Also adjust the corresponding sizeof() expressions to specify the
pointed-to type of the result variable rather than the literal type
(so that a type change of the variable will imply the size to get
adjusted too).

Suggested-by: Ian Campbell <Ian.Campbell@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/amd_f10.c
xen/arch/x86/cpu/mcheck/mcaction.c
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce_intel.c