patch-2.1.132 linux/drivers/sound/sb_common.c

Next file: linux/drivers/sound/sequencer.c
Previous file: linux/drivers/sound/sb_audio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/drivers/sound/sb_common.c linux/drivers/sound/sb_common.c
@@ -975,9 +975,11 @@
 			if (devc->dma16 >= 0)
 				sound_free_dma(devc->dma16);
 		}
-		if (!(devc->caps & SB_NO_AUDIO && devc->caps & SB_NO_MIDI) && devc->irq > 0)
+		if (!(devc->caps & SB_NO_AUDIO && devc->caps & SB_NO_MIDI))
 		{
-			free_irq(devc->irq, devc);
+			if (devc->irq > 0);
+				free_irq(devc->irq, devc);
+
 			sound_unload_mixerdev(devc->my_mixerdev);
 			/* We don't have to do this bit any more the UART401 is its own
 				master  -- Krzysztof Halasa */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov