From 62d203b1aea6a5195937032bb27c074afa7e2f7c Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Mon, 14 Sep 1998 01:55:53 +0000 Subject: avoid NULL deref for now --- sys/dev/isa/wdc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/dev/isa/wdc.c b/sys/dev/isa/wdc.c index 886d87ddc67..d530e3d3104 100644 --- a/sys/dev/isa/wdc.c +++ b/sys/dev/isa/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.33 1998/08/08 23:01:06 downsj Exp $ */ +/* $OpenBSD: wdc.c,v 1.34 1998/09/14 01:55:52 downsj Exp $ */ /* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */ /* @@ -1590,6 +1590,12 @@ wdcintr(arg) wdc->sc_flags &= ~WDCF_IRQ_WAIT; xfer = wdc->sc_xfer.tqh_first; + if (xfer == NULL) { +#ifdef ATAPI_DEBUG + printf("wdcintr: null xfer\n"); +#endif + return 0; + } #if NATAPIBUS > 0 && NWD > 0 if (xfer->c_flags & C_ATAPI) { (void)wdc_atapi_intr(wdc, xfer); -- cgit v1.2.3