summary refs log tree commit diff
path: root/pkgs/os-specific/linux/powertop/auto-tune.patch
blob: c9095336e8dca196b8cad5cb05c772aedaeaa967 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
diff --git a/src/devices/devfreq.cpp b/src/devices/devfreq.cpp
index d2e56e3..4de5c9b 100644
--- a/src/devices/devfreq.cpp
+++ b/src/devices/devfreq.cpp
@@ -247,6 +247,7 @@ void create_all_devfreq_devices(void)
 		fprintf(stderr, "Devfreq not enabled\n");
 		is_enabled = false;
 		closedir(dir);
+		dir = NULL;
 		return;
 	}