From 683b39b686cc893d0e0c720a5945e2b507c992fa Mon Sep 17 00:00:00 2001 From: Alexandru Isaila Date: Fri, 3 Aug 2018 17:39:31 +0200 Subject: [PATCH] x86/hvm: Drop hvm_sr_handlers initializer This initializer is flawed and only sets .name of array entry 0 to a non-NULL string. Suggested-by: Jan Beulich Signed-off-by: Alexandru Isaila Acked-by: Andrew Cooper --- xen/arch/x86/hvm/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/save.c b/xen/arch/x86/hvm/save.c index 8984a23a88..422b96c016 100644 --- a/xen/arch/x86/hvm/save.c +++ b/xen/arch/x86/hvm/save.c @@ -89,7 +89,7 @@ static struct { const char *name; size_t size; int kind; -} hvm_sr_handlers[HVM_SAVE_CODE_MAX + 1] = { {NULL, NULL, ""}, }; +} hvm_sr_handlers[HVM_SAVE_CODE_MAX + 1]; /* Init-time function to add entries to that list */ void __init hvm_register_savevm(uint16_t typecode, -- 2.30.2