Date: Tue, 6 Mar 2018 15:52:43 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330542 - head/sys/powerpc/powernv Message-ID: <201803061552.w26Fqhxw065480@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Tue Mar 6 15:52:43 2018 New Revision: 330542 URL: https://svnweb.freebsd.org/changeset/base/330542 Log: Fix use of unitialized variables. Modified: head/sys/powerpc/powernv/opal_pci.c head/sys/powerpc/powernv/platform_powernv.c Modified: head/sys/powerpc/powernv/opal_pci.c ============================================================================== --- head/sys/powerpc/powernv/opal_pci.c Tue Mar 6 15:51:59 2018 (r330541) +++ head/sys/powerpc/powernv/opal_pci.c Tue Mar 6 15:52:43 2018 (r330542) @@ -429,6 +429,7 @@ opalpci_read_config(device_t dev, u_int bus, u_int slo config_addr, reg, vtophys(&word)); break; default: + error = OPAL_SUCCESS; word = 0xffffffff; } Modified: head/sys/powerpc/powernv/platform_powernv.c ============================================================================== --- head/sys/powerpc/powernv/platform_powernv.c Tue Mar 6 15:51:59 2018 (r330541) +++ head/sys/powerpc/powernv/platform_powernv.c Tue Mar 6 15:52:43 2018 (r330542) @@ -127,7 +127,7 @@ powernv_attach(platform_t plat) char buf[255]; pcell_t prop; phandle_t cpu; - int res, len, node, idx; + int res, len, idx; register_t msr; /* Ping OPAL again just to make sure */ @@ -194,7 +194,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?201803061552.w26Fqhxw065480>