Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2017 19:54:27 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r323686 - projects/powernv/powerpc/powernv
Message-ID:  <201709171954.v8HJsRos025804@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sun Sep 17 19:54:27 2017
New Revision: 323686
URL: https://svnweb.freebsd.org/changeset/base/323686

Log:
  Fix use of wrong (and unitialized) variable

Modified:
  projects/powernv/powerpc/powernv/platform_powernv.c

Modified: projects/powernv/powerpc/powernv/platform_powernv.c
==============================================================================
--- projects/powernv/powerpc/powernv/platform_powernv.c	Sun Sep 17 19:53:52 2017	(r323685)
+++ projects/powernv/powerpc/powernv/platform_powernv.c	Sun Sep 17 19:54:27 2017	(r323686)
@@ -123,7 +123,7 @@ powernv_attach(platform_t plat)
 	char buf[255];
 	pcell_t prop;
 	phandle_t cpu;
-	int res, len, node, idx;
+	int res, len, idx;
 
 	/* Ping OPAL again just to make sure */
 	opal_check();
@@ -172,7 +172,7 @@ powernv_attach(platform_t plat)
 	 * for the encoding of the property.
 	 */
 
-	len = OF_getproplen(node, "ibm,segment-page-sizes");
+	len = OF_getproplen(cpu, "ibm,segment-page-sizes");
 	if (len > 0) {
 		/*
 		 * We have to use a variable length array on the stack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709171954.v8HJsRos025804>