dect
/
linux-2.6
Archived
13
0
Fork 0

[ALSA] hda-intel - Fix race in remove

Call iounmap after free_irq to avoid invalid accesses in the
shared irq.  The patch is taken from
	https://bugzilla.novell.com/show_bug.cgi?id=167869

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2006-06-01 11:42:14 +02:00 committed by Jaroslav Kysela
parent 29463dfea7
commit f079c25ab8
1 changed files with 2 additions and 2 deletions

View File

@ -1402,10 +1402,10 @@ static int azx_free(struct azx *chip)
msleep(1);
}
if (chip->remap_addr)
iounmap(chip->remap_addr);
if (chip->irq >= 0)
free_irq(chip->irq, (void*)chip);
if (chip->remap_addr)
iounmap(chip->remap_addr);
if (chip->bdl.area)
snd_dma_free_pages(&chip->bdl);