svn commit: r340585 - stable/11/sys/contrib/octeon-sdk

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


Author: emaste
Date: Sun Nov 18 14:56:26 2018
New Revision: 340585
URL: https://svnweb.freebsd.org/changeset/base/340585

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

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

Modified: stable/11/sys/contrib/octeon-sdk/cvmx-pip.h
==============================================================================
--- stable/11/sys/contrib/octeon-sdk/cvmx-pip.h	Sun Nov 18 14:56:08 2018	(r340584)
+++ stable/11/sys/contrib/octeon-sdk/cvmx-pip.h	Sun Nov 18 14:56:26 2018	(r340585)
@@ -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-all mailing list