Code

hugepages: typo fix in 2nd pathconf() check
authorKim Jones <kim-marie.jones@intel.com>
Tue, 16 Aug 2016 16:43:45 +0000 (17:43 +0100)
committerKim 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>
src/hugepages.c

index e7b98da47d62e8658eefda7424a83bcd0da0c2e9..120dd798c0d507db3534a510b104f4850b93e7d9 100644 (file)
@@ -220,7 +220,7 @@ static int read_nodes(void)
   }
 
   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);