⬢ DragonFlyBSD Kernel Audit
DF-4865 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/misc/cpuctl/cpuctl.c b/sys/dev/misc/cpuctl/cpuctl.c
index 1111111..2222222 100644
--- a/sys/dev/misc/cpuctl/cpuctl.c
+++ b/sys/dev/misc/cpuctl/cpuctl.c
@@ -257,7 +257,7 @@
 static int
 update_intel(int cpu, cpuctl_update_args_t *args)
 {
 	void *ptr;
-	uint64_t rev0, rev1;
+	uint64_t rev0 = 0, rev1 = 0;
 	uint32_t tmp[4];
 	int oldcpu;
 	int ret;
@@ -370,7 +370,7 @@
 static int
 update_via(int cpu, cpuctl_update_args_t *args)
 {
 	void *ptr;
-	uint64_t rev0, rev1, res;
+	uint64_t rev0 = 0, rev1 = 0, res = 0;
 	uint32_t tmp[4];
 	int oldcpu;
 	int ret;