Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2013 01:08:55 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254944 - head/sys/mips/malta
Message-ID:  <201308270108.r7R18toH063546@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Tue Aug 27 01:08:55 2013
New Revision: 254944
URL: http://svnweb.freebsd.org/changeset/base/254944

Log:
  - Initialize freq variable so we will not end up with random value
      if there is no YAMON present

Modified:
  head/sys/mips/malta/yamon.c

Modified: head/sys/mips/malta/yamon.c
==============================================================================
--- head/sys/mips/malta/yamon.c	Mon Aug 26 23:48:21 2013	(r254943)
+++ head/sys/mips/malta/yamon.c	Tue Aug 27 01:08:55 2013	(r254944)
@@ -56,6 +56,7 @@ yamon_getcpufreq(void)
 	uint32_t freq;
 	int ret;
 
+	freq = 0;
 	ret = YAMON_SYSCON_READ(SYSCON_BOARD_CPU_CLOCK_FREQ_ID, &freq,
 	    sizeof(freq));
 	if (ret != 0)



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