svn commit: r340584 - stable/12/sys/contrib/octeon-sdk

Ed Maste emaste at FreeBSD.org
Sun Nov 18 14:56:09 UTC 2018


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);


More information about the svn-src-stable-12 mailing list