diff options
author | 2009-06-02 03:58:17 +0000 | |
---|---|---|
committer | 2009-06-02 03:58:17 +0000 | |
commit | 40f0e24e45e7c341270dd35cc48e2575f7caa26b (patch) | |
tree | 054fc2aa7d39b503e0da4c880749fbbea2306b37 /sys/dev/pci/if_bge.c | |
parent | make the eval's resistant to rouge user input (diff) | |
download | wireguard-openbsd-40f0e24e45e7c341270dd35cc48e2575f7caa26b.tar.xz wireguard-openbsd-40f0e24e45e7c341270dd35cc48e2575f7caa26b.zip |
minor tidying; from Brad; ok sthen@
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index fe0538d2832..316a8f665ec 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.265 2009/06/02 02:16:41 sthen Exp $ */ +/* $OpenBSD: if_bge.c,v 1.266 2009/06/02 03:58:17 naddy Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -3363,14 +3363,13 @@ bge_ioctl(struct ifnet *ifp, u_long command, caddr_t data) case SIOCSIFFLAGS: if (ifp->if_flags & IFF_UP) { if (ifp->if_flags & IFF_RUNNING) - bge_iff(sc); + error = ENETRESET; else bge_init(sc); } else { if (ifp->if_flags & IFF_RUNNING) bge_stop(sc); } - sc->bge_if_flags = ifp->if_flags; break; case SIOCSIFMEDIA: |