Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev rnd_sample_allocate_isr: pass correct flag to pool_g...



details:   https://anonhg.NetBSD.org/src/rev/726c22fbc2ce
branches:  trunk
changeset: 748688:726c22fbc2ce
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sun Nov 01 21:08:32 2009 +0000

description:
rnd_sample_allocate_isr: pass correct flag to pool_get().
Should fix PR/39325.

diffstat:

 sys/dev/rnd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ccb1d384896b -r 726c22fbc2ce sys/dev/rnd.c
--- a/sys/dev/rnd.c     Sun Nov 01 21:05:30 2009 +0000
+++ b/sys/dev/rnd.c     Sun Nov 01 21:08:32 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rnd.c,v 1.76 2009/09/14 09:26:28 pooka Exp $   */
+/*     $NetBSD: rnd.c,v 1.77 2009/11/01 21:08:32 rmind Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.76 2009/09/14 09:26:28 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.77 2009/11/01 21:08:32 rmind Exp $");
 
 #include <sys/param.h>
 #include <sys/ioctl.h>
@@ -801,7 +801,7 @@
 {
        rnd_sample_t *c;
 
-       c = pool_get(&rnd_mempool, 0);
+       c = pool_get(&rnd_mempool, PR_NOWAIT);
        if (c == NULL)
                return (NULL);
 



Home | Main Index | Thread Index | Old Index