Blame powerpc-utils-cpu_dlpar_check.patch
|
Roman Rakus |
61d6aae |
Index: powerpc-utils-1.2.2/src/drmgr/common.c
|
|
Roman Rakus |
61d6aae |
===================================================================
|
|
Roman Rakus |
61d6aae |
--- powerpc-utils-1.2.2.orig/src/drmgr/common.c 2009-10-22 14:00:13.000000000 -0500
|
|
Roman Rakus |
61d6aae |
+++ powerpc-utils-1.2.2/src/drmgr/common.c 2010-05-26 18:18:08.960443479 -0500
|
|
Roman Rakus |
61d6aae |
@@ -1025,6 +1025,12 @@
|
|
Roman Rakus |
61d6aae |
while ((de = readdir(d)) != NULL) {
|
|
Roman Rakus |
61d6aae |
if (strncmp(de->d_name, "cpu", 3))
|
|
Roman Rakus |
61d6aae |
continue;
|
|
Roman Rakus |
61d6aae |
+
|
|
Roman Rakus |
61d6aae |
+ /* Ensure this is a cpu directory, i.e. cpu0, and not a
|
|
Roman Rakus |
61d6aae |
+ * non-cpu directory, i.e. cpufreq.
|
|
Roman Rakus |
61d6aae |
+ */
|
|
Roman Rakus |
61d6aae |
+ if (!isdigit(de->d_name[3]))
|
|
Roman Rakus |
61d6aae |
+ continue;
|
|
Roman Rakus |
61d6aae |
|
|
Roman Rakus |
61d6aae |
sprintf(fname, "%s/%s/online", cpu_dir, de->d_name);
|
|
Roman Rakus |
61d6aae |
|