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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to