Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Fix locking botch
details: https://anonhg.NetBSD.org/src/rev/76305a02082e
branches: trunk
changeset: 783947:76305a02082e
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Jan 13 08:05:30 2013 +0000
description:
Fix locking botch
diffstat:
sys/dev/usb/if_smsc.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 750786d84d25 -r 76305a02082e sys/dev/usb/if_smsc.c
--- a/sys/dev/usb/if_smsc.c Sun Jan 13 06:56:30 2013 +0000
+++ b/sys/dev/usb/if_smsc.c Sun Jan 13 08:05:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_smsc.c,v 1.2 2013/01/12 20:06:47 jakllsch Exp $ */
+/* $NetBSD: if_smsc.c,v 1.3 2013/01/13 08:05:30 skrll Exp $ */
/* $OpenBSD: if_smsc.c,v 1.4 2012/09/27 12:38:11 jsg Exp $ */
/* $FreeBSD: src/sys/dev/usb/net/if_smsc.c,v 1.1 2012/08/15 04:03:55 gonzo Exp $ */
@@ -273,9 +273,10 @@
smsc_warn_printf(sc, "MII read timeout\n");
smsc_read_reg(sc, SMSC_MII_DATA, &val);
+
+done:
smsc_unlock_mii(sc);
-done:
return (val & 0xFFFF);
}
Home |
Main Index |
Thread Index |
Old Index