Author: kib
Date: Wed Nov  8 23:25:05 2017
New Revision: 325566
URL: https://svnweb.freebsd.org/changeset/base/325566

Log:
  Fix operator priority.
  
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c      Wed Nov  8 23:20:05 2017        (r325565)
+++ head/sys/vm/uma_core.c      Wed Nov  8 23:25:05 2017        (r325566)
@@ -1110,7 +1110,8 @@ noobj_alloc(uma_zone_t zone, vm_size_t bytes, uint8_t 
        while (npages > 0) {
                p = vm_page_alloc(NULL, 0, VM_ALLOC_INTERRUPT |
                    VM_ALLOC_WIRED | VM_ALLOC_NOOBJ |
-                   (wait & M_WAITOK) ? VM_ALLOC_WAITOK : VM_ALLOC_NOWAIT);
+                   ((wait & M_WAITOK) != 0 ? VM_ALLOC_WAITOK :
+                   VM_ALLOC_NOWAIT));
                if (p != NULL) {
                        /*
                         * Since the page does not belong to an object, its
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to