Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/broadcom Fix return with mutex held bug in get ...
details: https://anonhg.NetBSD.org/src/rev/3d2eeca7ba04
branches: trunk
changeset: 789602:3d2eeca7ba04
user: tls <tls%NetBSD.org@localhost>
date: Sun Aug 25 17:08:41 2013 +0000
description:
Fix return with mutex held bug in get routine -- thanks Jared.
diffstat:
sys/arch/arm/broadcom/bcm2835_rng.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r ca18180655f7 -r 3d2eeca7ba04 sys/arch/arm/broadcom/bcm2835_rng.c
--- a/sys/arch/arm/broadcom/bcm2835_rng.c Sun Aug 25 14:20:30 2013 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_rng.c Sun Aug 25 17:08:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_rng.c,v 1.6 2013/08/01 11:30:38 skrll Exp $ */
+/* $NetBSD: bcm2835_rng.c,v 1.7 2013/08/25 17:08:41 tls Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_rng.c,v 1.6 2013/08/01 11:30:38 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_rng.c,v 1.7 2013/08/25 17:08:41 tls Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -129,6 +129,7 @@
mutex_spin_enter(&sc->sc_mutex);
if (__predict_false(need < 1)) {
+ mutex_spin_exit(&sc->sc_mutex);
return;
}
Home |
Main Index |
Thread Index |
Old Index