summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2013-04-02 10:12:22 +0000
committermsaitoh <msaitoh@NetBSD.org>2013-04-02 10:12:22 +0000
commit375b6dffbef3b498092397e3c68c64698ddc515f (patch)
tree5a2a85c3a2ddb5b2da8610d1ef354ae592695f63 /sys/dev
parentd3e1e31e08402bdf2782a10a261e088af5a8e2d7 (diff)
Fix APE lock bug for PHYs (FreeBSD r248993)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_bge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 34f93a5de75..1bb55bba160 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.230 2013/03/30 03:21:03 christos Exp $ */
+/* $NetBSD: if_bge.c,v 1.231 2013/04/02 10:12:22 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.230 2013/03/30 03:21:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.231 2013/04/02 10:12:22 msaitoh Exp $");
#include "vlan.h"
@@ -908,7 +908,7 @@ bge_ape_lock_init(struct bge_softc *sc)
bit = BGE_APE_LOCK_GRANT_DRIVER0;
break;
default:
- if (pa->pa_function != 0)
+ if (pa->pa_function == 0)
bit = BGE_APE_LOCK_GRANT_DRIVER0;
else
bit = (1 << pa->pa_function);