diff options
author | dick <dick@FreeBSD.org> | 2000-07-18 20:18:16 +0000 |
---|---|---|
committer | dick <dick@FreeBSD.org> | 2000-07-18 20:18:16 +0000 |
commit | 873fedbae4b364d9b8a78f011c7ef1502f22850e (patch) | |
tree | e614356fcbecf3708948573f0237af92eab49cb8 /sys/dev/sound | |
parent | 13097772852524267b1499549c9ab0215807ee23 (diff) | |
download | FreeBSD-src-873fedbae4b364d9b8a78f011c7ef1502f22850e.zip FreeBSD-src-873fedbae4b364d9b8a78f011c7ef1502f22850e.tar.gz |
PR:19945
Reviewed by:tanimura
Fix boot panic introduced by newmidi code.
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/isa/gusc.c | 3 |
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); |