c1c534
From b200b9cbb5c6c7d3d3b1bb4f745a7371cc35a429 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <b200b9cbb5c6c7d3d3b1bb4f745a7371cc35a429@dist-git>
c1c534
From: Jiri Denemark <jdenemar@redhat.com>
c1c534
Date: Wed, 13 Dec 2017 22:30:31 +0100
c1c534
Subject: [PATCH] cpu_x86: Rename virCPUx86MapInitialize
c1c534
c1c534
The function will be used to initialize internal data of the x86 CPU
c1c534
driver (including the CPU map).
c1c534
c1c534
CVE-2017-5715
c1c534
c1c534
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c1c534
---
c1c534
 src/cpu/cpu_x86.c | 8 ++++----
c1c534
 1 file changed, 4 insertions(+), 4 deletions(-)
c1c534
c1c534
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
c1c534
index a6cbd45766..693e571a3d 100644
c1c534
--- a/src/cpu/cpu_x86.c
c1c534
+++ b/src/cpu/cpu_x86.c
c1c534
@@ -153,8 +153,8 @@ struct _virCPUx86Map {
c1c534
 };
c1c534
 
c1c534
 static virCPUx86MapPtr cpuMap;
c1c534
-int virCPUx86MapOnceInit(void);
c1c534
-VIR_ONCE_GLOBAL_INIT(virCPUx86Map);
c1c534
+int virCPUx86DriverOnceInit(void);
c1c534
+VIR_ONCE_GLOBAL_INIT(virCPUx86Driver);
c1c534
 
c1c534
 
c1c534
 typedef enum {
c1c534
@@ -1404,7 +1404,7 @@ virCPUx86LoadMap(void)
c1c534
 
c1c534
 
c1c534
 int
c1c534
-virCPUx86MapOnceInit(void)
c1c534
+virCPUx86DriverOnceInit(void)
c1c534
 {
c1c534
     if (!(cpuMap = virCPUx86LoadMap()))
c1c534
         return -1;
c1c534
@@ -1416,7 +1416,7 @@ virCPUx86MapOnceInit(void)
c1c534
 static virCPUx86MapPtr
c1c534
 virCPUx86GetMap(void)
c1c534
 {
c1c534
-    if (virCPUx86MapInitialize() < 0)
c1c534
+    if (virCPUx86DriverInitialize() < 0)
c1c534
         return NULL;
c1c534
 
c1c534
     return cpuMap;
c1c534
-- 
c1c534
2.15.1
c1c534