summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26c9dd0)
raw | patch | inline | side by side (parent: 26c9dd0)
author | Kim Jones <kim-marie.jones@intel.com> | |
Tue, 16 Aug 2016 16:43:45 +0000 (17:43 +0100) | ||
committer | Kim Jones <kim-marie.jones@intel.com> | |
Tue, 16 Aug 2016 16:50:41 +0000 (17:50 +0100) |
Change-Id: Ie4ceb0ec4b55e60fcffb1d59d33a5711366eb2f7
Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
src/hugepages.c | patch | blob | history |
diff --git a/src/hugepages.c b/src/hugepages.c
index e7b98da47d62e8658eefda7424a83bcd0da0c2e9..120dd798c0d507db3534a510b104f4850b93e7d9 100644 (file)
--- a/src/hugepages.c
+++ b/src/hugepages.c
}
errno = 0;
- if ((lim = pathconf(path, _PC_NAME_MAX)) == -1) {
+ if ((lim = pathconf(sys_node, _PC_NAME_MAX)) == -1) {
/* Limit not defined if errno == 0, otherwise error */
if (errno != 0) {
ERROR("%s: pathconf failed", g_plugin_name);