Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 15:47:16 +0000 (UTC)
From:      Grzegorz Bernacki <gber@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r230820 - projects/armv6/sys/arm/arm
Message-ID:  <201201311547.q0VFlGfD042890@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gber
Date: Tue Jan 31 15:47:15 2012
New Revision: 230820
URL: http://svn.freebsd.org/changeset/base/230820

Log:
  Initialize cpuset structure with zero value before using it
  
  Submitted by: Lukasz Plachno
  Obtained from: Marvell, Semihalf

Modified:
  projects/armv6/sys/arm/arm/mp_machdep.c

Modified: projects/armv6/sys/arm/arm/mp_machdep.c
==============================================================================
--- projects/armv6/sys/arm/arm/mp_machdep.c	Tue Jan 31 15:46:29 2012	(r230819)
+++ projects/armv6/sys/arm/arm/mp_machdep.c	Tue Jan 31 15:47:15 2012	(r230820)
@@ -310,6 +310,7 @@ ipi_cpu(int cpu, u_int ipi)
 {
 	cpuset_t cpus;
 
+	CPU_ZERO(&cpus);
 	CPU_SET(cpu, &cpus);
 
 	CTR3(KTR_SMP, "%s: cpu: %d, ipi: %x", __func__, cpu, ipi);



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