From c4413ca9cec4a16b12c2dbdfde5b821a35de5e0e Mon Sep 17 00:00:00 2001 From: Kim Jones Date: Tue, 16 Aug 2016 17:43:45 +0100 Subject: [PATCH] hugepages: typo fix in 2nd pathconf() check Change-Id: Ie4ceb0ec4b55e60fcffb1d59d33a5711366eb2f7 Signed-off-by: Kim Jones --- src/hugepages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hugepages.c b/src/hugepages.c index e7b98da4..120dd798 100644 --- a/src/hugepages.c +++ b/src/hugepages.c @@ -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); -- 2.30.2