Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Remove null pointer dereference in the code that ne...
details: https://anonhg.NetBSD.org/src/rev/165af6e76108
branches: trunk
changeset: 337427:165af6e76108
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 14 12:33:53 2015 +0000
description:
Remove null pointer dereference in the code that never worked before...
diffstat:
sys/kern/kern_rndq.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c33e8f59cc7c -r 165af6e76108 sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c Tue Apr 14 12:28:12 2015 +0000
+++ b/sys/kern/kern_rndq.c Tue Apr 14 12:33:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndq.c,v 1.50 2015/04/14 12:28:12 riastradh Exp $ */
+/* $NetBSD: kern_rndq.c,v 1.51 2015/04/14 12:33:53 riastradh Exp $ */
/*-
* Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.50 2015/04/14 12:28:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.51 2015/04/14 12:33:53 riastradh Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -1020,7 +1020,7 @@
rnd_process_events(void)
{
rnd_sample_t *sample = NULL;
- krndsource_t *source, *badsource = NULL;
+ krndsource_t *source;
static krndsource_t *last_source;
uint32_t entropy;
size_t pool_entropy;
@@ -1090,7 +1090,7 @@
if (__predict_false(rnd_hwrng_test(sample))) {
source->flags |= RND_FLAG_NO_COLLECT;
rnd_printf("rnd: disabling source \"%s\".",
- badsource->name);
+ source->name);
goto skip;
}
}
Home |
Main Index |
Thread Index |
Old Index