x86/hvm: Drop hvm_sr_handlers initializer
PATCH 1/1 x86/hvm: Drop hvm_sr_handlers initializer
This initializer is flawed and only sets .name of array entry 0 to a non-NULL string.
Signed-off-by Alexandru Isaila <[email protected]>
Suggested-by Jan Beulich <[email protected]>
--- xen/arch/x86/hvm/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/hvm/save.c +1 -1
@@ -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,
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Alexandru Isaila
This initializer is flawed and only sets .name of array entry 0 to a non-NULL string.
Signed-off-by Alexandru Isaila <[email protected]>Suggested-by Jan Beulich <[email protected]>
Acked-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel