Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Let's put a s = splnet(); to match the splx(s); a...



details:   https://anonhg.NetBSD.org/src/rev/6729b3ccafe5
branches:  trunk
changeset: 527024:6729b3ccafe5
user:      matt <matt%NetBSD.org@localhost>
date:      Wed May 15 23:51:49 2002 +0000

description:
Let's put a s = splnet(); to match the splx(s); already in the routine.
(yes, we were doing an splx with an uninitialized variable).

diffstat:

 sys/dev/ic/gem.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2a5810bd2715 -r 6729b3ccafe5 sys/dev/ic/gem.c
--- a/sys/dev/ic/gem.c  Wed May 15 22:48:42 2002 +0000
+++ b/sys/dev/ic/gem.c  Wed May 15 23:51:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gem.c,v 1.19 2002/05/15 21:05:23 matt Exp $ */
+/*     $NetBSD: gem.c,v 1.20 2002/05/15 23:51:49 matt Exp $ */
 
 /*
  * 
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.19 2002/05/15 21:05:23 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.20 2002/05/15 23:51:49 matt Exp $");
 
 #include "bpfilter.h"
 
@@ -1835,6 +1835,7 @@
        struct ifreq *ifr = (struct ifreq *)data;
        int s, error = 0;
 
+       s = splnet();
 
        switch (cmd) {
        case SIOCGIFMEDIA:



Home | Main Index | Thread Index | Old Index