mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 05:11:32 +00:00
ALSA: au88x0 - Avoid possible Oops at unbinding
The irq handler must check whether the MPU401 instance is still alive. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0717d0f5d2
commit
c6b76d1f02
@ -2477,7 +2477,7 @@ static irqreturn_t vortex_interrupt(int irq, void *dev_id)
|
||||
hwread(vortex->mmio, VORTEX_IRQ_STAT);
|
||||
handled = 1;
|
||||
}
|
||||
if (source & IRQ_MIDI) {
|
||||
if ((source & IRQ_MIDI) && vortex->rmidi) {
|
||||
snd_mpu401_uart_interrupt(vortex->irq,
|
||||
vortex->rmidi->private_data);
|
||||
handled = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user