Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2011 11:29:13 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r217716 - stable/8/sys/dev/md
Message-ID:  <201101221129.p0MBTDH3090059@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Jan 22 11:29:13 2011
New Revision: 217716
URL: http://svn.freebsd.org/changeset/base/217716

Log:
  MFC r217583:
  Add missed ().

Modified:
  stable/8/sys/dev/md/md.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/md/md.c
==============================================================================
--- stable/8/sys/dev/md/md.c	Sat Jan 22 11:27:10 2011	(r217715)
+++ stable/8/sys/dev/md/md.c	Sat Jan 22 11:29:13 2011	(r217716)
@@ -854,8 +854,8 @@ mdcreate_malloc(struct md_s *sc, struct 
 
 		nsectors = sc->mediasize / sc->sectorsize;
 		for (u = 0; u < nsectors; u++) {
-			sp = (uintptr_t)uma_zalloc(sc->uma, md_malloc_wait ?
-			    M_WAITOK : M_NOWAIT | M_ZERO);
+			sp = (uintptr_t)uma_zalloc(sc->uma, (md_malloc_wait ?
+			    M_WAITOK : M_NOWAIT) | M_ZERO);
 			if (sp != 0)
 				error = s_write(sc->indir, u, sp);
 			else



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