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 <jbeulich@suse.com>
Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Alexandru Isaila authored and Jan Beulich committed 2018-08-03 17:39:31 +02:00
1 parent 5a5b8bfec3
commit 683b39b686
1 file changed
+1 -1
+1 -1
View File
@@ -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,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.