Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2018 14:56:08 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r340584 - stable/12/sys/contrib/octeon-sdk
Message-ID:  <201811181456.wAIEu8us036131@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Sun Nov 18 14:56:08 2018
New Revision: 340584
URL: https://svnweb.freebsd.org/changeset/base/340584

Log:
  MFC r340299: Octeon SDK: avoid use of uninitialized variable
  
  Reported by:	Clang

Modified:
  stable/12/sys/contrib/octeon-sdk/cvmx-pip.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/contrib/octeon-sdk/cvmx-pip.h
==============================================================================
--- stable/12/sys/contrib/octeon-sdk/cvmx-pip.h	Sun Nov 18 14:55:04 2018	(r340583)
+++ stable/12/sys/contrib/octeon-sdk/cvmx-pip.h	Sun Nov 18 14:56:08 2018	(r340584)
@@ -684,6 +684,7 @@ static inline int cvmx_pip_get_bsel_table_index(cvmx_w
     bsel_cfg.u64 = cvmx_read_csr(CVMX_PIP_BSEL_EXT_CFGX(bit));
     bsel_pos.u64 = cvmx_read_csr(CVMX_PIP_BSEL_EXT_POSX(bit));
 
+    index = 0;
     for (y = 0; y < 8; y++)
     {
         char *ptr = (char *)cvmx_phys_to_ptr(work->packet_ptr.s.addr);



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