The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / powertop / 0001-autotune-fix-use-after-close.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/powertop/0001-autotune-fix-use-after-close.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/powertop/0001-autotune-fix-use-after-close.patch
new file mode 100644 (file)
index 0000000..f2b3dff
--- /dev/null
@@ -0,0 +1,15 @@
+Patch pulled from https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/powertop&id=37469c47b885c50365f57044e4ad72e0e3512b91
+
+Fixes a use-after-close bug in create_all_devfreq_devices().
+
+Signed-off-by: Steven Noonan <steven@uplinklabs.net>
+
+--- 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;
+       }