Skip to content

Commit

Permalink
ALSA: au88x0 - Avoid possible Oops at unbinding
Browse files Browse the repository at this point in the history
The irq handler must check whether the MPU401 instance is still alive.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Mar 16, 2012
1 parent 0717d0f commit c6b76d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/au88x0/au88x0_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6b76d1

Please sign in to comment.