]> xenbits.xensource.com Git - xtf.git/commitdiff
vmx: Don't create strings[] on the stack of every vmx_insn_err_strerror() call
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Mar 2018 13:19:53 +0000 (13:19 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Mar 2018 13:19:53 +0000 (13:19 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/vmx.c

index b14f28a2f169934b358125fee1caa8da402742d3..c9a829940d6c20db309c650e5d7aaaad2dc3ed88 100644 (file)
@@ -10,7 +10,7 @@
 const char *vmx_insn_err_strerror(unsigned int err)
 {
 #define ERR(x) [VMERR_ ## x] = #x
-    const char *const strings[] = {
+    static const char *const strings[] = {
         ERR(VMCALL_IN_ROOT),
         ERR(VMCLEAR_BAD_PADDR),
         ERR(VMCLEAR_WITH_VMXON_PTR),