summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordick <dick@FreeBSD.org>2000-07-18 20:18:16 +0000
committerdick <dick@FreeBSD.org>2000-07-18 20:18:16 +0000
commit873fedbae4b364d9b8a78f011c7ef1502f22850e (patch)
treee614356fcbecf3708948573f0237af92eab49cb8 /sys
parent13097772852524267b1499549c9ab0215807ee23 (diff)
downloadFreeBSD-src-873fedbae4b364d9b8a78f011c7ef1502f22850e.zip
FreeBSD-src-873fedbae4b364d9b8a78f011c7ef1502f22850e.tar.gz
PR:19945
Reviewed by:tanimura Fix boot panic introduced by newmidi code.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/isa/gusc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/isa/gusc.c b/sys/dev/sound/isa/gusc.c
index f75f2f0..10a1f0a 100644
--- a/sys/dev/sound/isa/gusc.c
+++ b/sys/dev/sound/isa/gusc.c
@@ -324,7 +324,8 @@ gusc_attach(device_t dev)
return (ENXIO);
}
- bus_setup_intr(dev, scp->irq, INTR_TYPE_TTY, gusc_intr, scp, &ih);
+ if (scp->irq != NULL)
+ bus_setup_intr(dev, scp->irq, INTR_TYPE_TTY, gusc_intr, scp, &ih);
bus_generic_attach(dev);
return (0);
OpenPOWER on IntegriCloud