powertop: update to 2.8.
This commit is contained in:
parent
afc604745f
commit
953a5d17d6
|
@ -1,49 +0,0 @@
|
||||||
From 6fd9ecebd3bc277bd91ce057f85f8e54b09bb0a9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Michael Mullin <masmullin@hush.com>
|
|
||||||
Date: Thu, 22 Jan 2015 16:50:10 -0500
|
|
||||||
Subject: [PATCH] Powertop crashes with 'powertop --auto-tune'
|
|
||||||
|
|
||||||
-----BEGIN PGP SIGNED MESSAGE-----
|
|
||||||
Hash: SHA256
|
|
||||||
|
|
||||||
Please see the following patch to address the reported crash
|
|
||||||
- ---
|
|
||||||
- From e994a414f619410877023fce35ade12d1cfce68d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Michael Mullin <masmullin@hush.com>
|
|
||||||
Date: Thu, 22 Jan 2015 16:33:31 -0500
|
|
||||||
Subject: [PATCH] If "dir" is closed early inside create_add_devfreq_devices()
|
|
||||||
then there is a potential double free due to a second close during the
|
|
||||||
cleanup phase in clear_all_devfreq()
|
|
||||||
|
|
||||||
Signed-off-by: Michael Mullin <masmullin@hush.com>
|
|
||||||
|
|
||||||
- ---
|
|
||||||
src/devices/devfreq.cpp | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
---
|
|
||||||
src/devices/devfreq.cpp | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git src/devices/devfreq.cpp src/devices/devfreq.cpp
|
|
||||||
index d2e56e3..f652a57 100644
|
|
||||||
--- src/devices/devfreq.cpp
|
|
||||||
+++ 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -327,6 +328,8 @@ void clear_all_devfreq()
|
|
||||||
}
|
|
||||||
all_devfreq.clear();
|
|
||||||
/* close /sys/class/devfreq */
|
|
||||||
- if (dir != NULL)
|
|
||||||
+ if (dir != NULL) {
|
|
||||||
closedir(dir);
|
|
||||||
+ dir = NULL;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'powertop'
|
# Template file for 'powertop'
|
||||||
pkgname=powertop
|
pkgname=powertop
|
||||||
version=2.7
|
version=2.8
|
||||||
revision=3
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin"
|
configure_args="--sbindir=/usr/bin"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
|
@ -11,4 +11,4 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="https://01.org/powertop/"
|
homepage="https://01.org/powertop/"
|
||||||
distfiles="https://01.org/sites/default/files/downloads/powertop/powertop-${version}.tar.gz"
|
distfiles="https://01.org/sites/default/files/downloads/powertop/powertop-${version}.tar.gz"
|
||||||
checksum=8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca
|
checksum=a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
site="https://01.org/powertop/downloads"
|
Loading…
Reference in New Issue