Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/dev/pci Pull up following revision(s) (requested by m...
details: https://anonhg.NetBSD.org/src/rev/3695e1fba478
branches: netbsd-7
changeset: 799302:3695e1fba478
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon May 11 06:15:46 2015 +0000
description:
Pull up following revision(s) (requested by mrg in ticket #750):
sys/dev/pci/hifn7751.c: revision 1.59
initialise sc_mtx slightly earlier, before it is used on systems with rng.
fixes problem reported by msaitoh@.
diffstat:
sys/dev/pci/hifn7751.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r cc0d65a4081c -r 3695e1fba478 sys/dev/pci/hifn7751.c
--- a/sys/dev/pci/hifn7751.c Mon May 11 05:43:52 2015 +0000
+++ b/sys/dev/pci/hifn7751.c Mon May 11 06:15:46 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hifn7751.c,v 1.56.2.1 2015/05/11 03:14:29 msaitoh Exp $ */
+/* $NetBSD: hifn7751.c,v 1.56.2.2 2015/05/11 06:15:46 msaitoh Exp $ */
/* $FreeBSD: hifn7751.c,v 1.5.2.7 2003/10/08 23:52:00 sam Exp $ */
/* $OpenBSD: hifn7751.c,v 1.140 2003/08/01 17:55:54 deraadt Exp $ */
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.56.2.1 2015/05/11 03:14:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.56.2.2 2015/05/11 06:15:46 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -432,13 +432,13 @@
sc->sc_dmamap->dm_mapsize,
BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
+ mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_VM);
+
if (sc->sc_flags & (HIFN_HAS_PUBLIC | HIFN_HAS_RNG)) {
hifn_init_pubrng(sc);
sc->sc_rng_need = RND_POOLBITS / NBBY;
}
- mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_VM);
-
#ifdef __OpenBSD__
timeout_set(&sc->sc_tickto, hifn_tick, sc);
timeout_add(&sc->sc_tickto, hz);
Home |
Main Index |
Thread Index |
Old Index