Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Fix incorrect argument of mii_anar(). Fixes PR#5...
details: https://anonhg.NetBSD.org/src/rev/a51d879b3ac3
branches: trunk
changeset: 340491:a51d879b3ac3
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Sep 08 10:16:53 2015 +0000
description:
Fix incorrect argument of mii_anar(). Fixes PR#50206.
XXX pullup -[567]
diffstat:
sys/dev/mii/atphy.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ededce140eb9 -r a51d879b3ac3 sys/dev/mii/atphy.c
--- a/sys/dev/mii/atphy.c Tue Sep 08 08:59:09 2015 +0000
+++ b/sys/dev/mii/atphy.c Tue Sep 08 10:16:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atphy.c,v 1.16 2014/06/16 12:36:41 msaitoh Exp $ */
+/* $NetBSD: atphy.c,v 1.17 2015/09/08 10:16:53 msaitoh Exp $ */
/* $OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $ */
/*-
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.16 2014/06/16 12:36:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.17 2015/09/08 10:16:53 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -228,7 +228,7 @@
return EINVAL;
}
- anar = mii_anar(ife->ifm_media);
+ anar = mii_anar(IFM_SUBTYPE(ife->ifm_media));
if (((ife->ifm_media & IFM_GMASK) & IFM_FDX) != 0) {
bmcr |= BMCR_FDX;
/* Enable pause. */
Home |
Main Index |
Thread Index |
Old Index