aboutsummaryrefslogtreecommitdiffstats
path: root/main/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-12-02 09:52:11 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-12-02 09:53:48 +0000
commit862c741a3ccc0936ce80840bad3937dec6a52c4d (patch)
tree17c50031bdf772cd550ec3600fb4c2ba439a73f7 /main/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch
parentfc0e71c84b2f87957a39905d17240097e8cb475f (diff)
downloadaports-862c741a3ccc0936ce80840bad3937dec6a52c4d.tar.bz2
aports-862c741a3ccc0936ce80840bad3937dec6a52c4d.tar.xz
main/cpufrequtils: apply upstream commits to fix arm build
and also the other issues we were already patching for.
Diffstat (limited to 'main/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch')
-rw-r--r--main/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch b/main/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch
new file mode 100644
index 0000000000..94088300f9
--- /dev/null
+++ b/main/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch
@@ -0,0 +1,29 @@
+From 9f2efa7bc6969c10562ac2c720d50ff77083e5c2 Mon Sep 17 00:00:00 2001
+From: Roman Vasiyarov <rvasiyarov@gmail.com>
+Date: Mon, 25 Apr 2011 21:34:23 +0400
+Subject: [PATCH 5/8] cpufrequtils sysfs: increase MAX_LINE_LEN
+
+larger sysfs data (>255 bytes) was truncated and thus used improperly
+
+Signed-off-by: Roman Vasiyarov <rvasiyarov@gmail.com>
+Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
+---
+ lib/sysfs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/sysfs.c b/lib/sysfs.c
+index 4e0edab..24dd563 100644
+--- a/lib/sysfs.c
++++ b/lib/sysfs.c
+@@ -18,7 +18,7 @@
+ #include "cpufreq.h"
+
+ #define PATH_TO_CPU "/sys/devices/system/cpu/"
+-#define MAX_LINE_LEN 255
++#define MAX_LINE_LEN 4096
+ #define SYSFS_PATH_MAX 255
+
+ /* helper function to read file from /sys into given buffer */
+--
+1.7.10
+