Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Fix APE lock bug for PHYs (FreeBSD r248993)



details:   https://anonhg.NetBSD.org/src/rev/1a81041a582b
branches:  trunk
changeset: 785839:1a81041a582b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Apr 02 10:12:22 2013 +0000

description:
Fix APE lock bug for PHYs (FreeBSD r248993)

diffstat:

 sys/dev/pci/if_bge.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 659414fb29ea -r 1a81041a582b sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Mon Apr 01 20:14:42 2013 +0000
+++ b/sys/dev/pci/if_bge.c      Tue Apr 02 10:12:22 2013 +0000
@@ -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 @@
                        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);



Home | Main Index | Thread Index | Old Index