Module Name: src Committed By: matt Date: Sat Oct 27 17:34:07 UTC 2012
Modified Files: src/sys/kern: subr_cprng.c Log Message: Use kmem_intr_alloc/kmem_intr_free To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/kern/subr_cprng.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/subr_cprng.c diff -u src/sys/kern/subr_cprng.c:1.12 src/sys/kern/subr_cprng.c:1.13 --- src/sys/kern/subr_cprng.c:1.12 Sat Sep 8 02:58:13 2012 +++ src/sys/kern/subr_cprng.c Sat Oct 27 17:34:07 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_cprng.c,v 1.12 2012/09/08 02:58:13 msaitoh Exp $ */ +/* $NetBSD: subr_cprng.c,v 1.13 2012/10/27 17:34:07 matt Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -46,7 +46,7 @@ #include <sys/cprng.h> -__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.12 2012/09/08 02:58:13 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.13 2012/10/27 17:34:07 matt Exp $"); void cprng_init(void) @@ -286,7 +286,7 @@ rekeyany: */ if (__predict_false(c->drbg.reseed_counter == 1) && (flags & FASYNC) == 0) { - rngtest_t *rt = kmem_alloc(sizeof(*rt), KM_NOSLEEP); + rngtest_t *rt = kmem_intr_alloc(sizeof(*rt), KM_NOSLEEP); if (rt) { @@ -308,7 +308,7 @@ rekeyany: len = 0; } memset(rt, 0, sizeof(*rt)); - kmem_free(rt, sizeof(*rt)); + kmem_intr_free(rt, sizeof(*rt)); } } #endif