[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v1] x86/hvm: Drop hvm_sr_handlers initializer


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>
  • Date: Fri, 3 Aug 2018 12:27:33 +0300
  • Cc: Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, andrew.cooper3@xxxxxxxxxx, jbeulich@xxxxxxxx
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Fri, 03 Aug 2018 09:28:06 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=WEH0XsGa4YFT0Yi6p+hamSyXbOIGNWs89fLMWpj17CVxL/oenKNSO9WGRobUtgjmeB0zP5l0dr5wR6zBD3egBmSXfEcWp2DCuj0XOmbjR099uxGE+h1oYafYAnk6PXXAIHmXORnK8Arq/PrfdNGkjicOCtZweX+W81EnQWBZPJZUAkNcISMonKbB23PZxyLAiTKbLBrFE/69TqaXu/LspxgN1C9NLYFxqNd8o4/n3rC/WDIhW+77UMTCdHnBNoAgD7Nli3owzhUqVREiKthoddzDMXBUuOwwD7m3ulmFAW64U/ppC8SutkpwxxMgrs829G+ExAzzAlIX1KoiQWrxAQ==; h=Received:Received:Received:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer;
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This initializer is flawed and only sets .name of array entry 0
to a non-NULL string.

Signed-off-by: Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>
Suggested-by: Jan Beulich <JBeulich@xxxxxxxx>
---
 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 8984a23..422b96c 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.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.