summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vic.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-17 02:07:06 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-17 02:07:06 +0000
commit7d765b8eee88c84a69da0d88645a9e749a08019b (patch)
tree6f2bfa64ffa5c2c12dcbf3b8d85f3523255f4008 /sys/dev/pci/if_vic.c
parent37e53adf29fff30cacd9094f1fd0be791c732c10 (diff)
point ifreq in the ioctl path at something, so we can void dereferencing
random memory.
Diffstat (limited to 'sys/dev/pci/if_vic.c')
-rw-r--r--sys/dev/pci/if_vic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c
index 7474ac6f387..a3f2b967a58 100644
--- a/sys/dev/pci/if_vic.c
+++ b/sys/dev/pci/if_vic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vic.c,v 1.40 2007/04/14 23:35:35 reyk Exp $ */
+/* $OpenBSD: if_vic.c,v 1.41 2007/04/17 02:07:05 dlg Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
@@ -1114,8 +1114,8 @@ int
vic_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct vic_softc *sc = (struct vic_softc *)ifp->if_softc;
+ struct ifreq *ifr = (struct ifreq *)data;
struct ifaddr *ifa;
- struct ifreq *ifr;
int s, error = 0;
s = splnet();