diff options
author | 2007-01-03 14:05:00 +0000 | |
---|---|---|
committer | 2007-01-03 14:05:00 +0000 | |
commit | ccb3d2eb3cf524c9147c51b1474d380a24760890 (patch) | |
tree | 5f2868a5ee677d54cb8dd5c48cb37604247beea1 | |
parent | mbg(4) cards with ASIC take the internal timestamp at the very moment the (diff) | |
download | wireguard-openbsd-ccb3d2eb3cf524c9147c51b1474d380a24760890.tar.xz wireguard-openbsd-ccb3d2eb3cf524c9147c51b1474d380a24760890.zip |
also bail if sc_chipc is NULL; spotted by miod
-rw-r--r-- | sys/dev/pci/agp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/agp.c b/sys/dev/pci/agp.c index 1d3dde15a28..f6d151ea857 100644 --- a/sys/dev/pci/agp.c +++ b/sys/dev/pci/agp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agp.c,v 1.3 2007/01/02 22:22:19 deraadt Exp $ */ +/* $OpenBSD: agp.c,v 1.4 2007/01/03 14:05:00 deraadt Exp $ */ /*- * Copyright (c) 2000 Doug Rabson * All rights reserved. @@ -146,7 +146,7 @@ agp_ioctl(void *v, u_long cmd, caddr_t addr, int flag, struct proc *pb) vsize_t size; int error = 0; - if (sc->sc_methods == NULL) + if (sc->sc_methods == NULL || sc->sc_chipc == NULL) return (ENXIO); switch (cmd) { |