diff options
-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) { |