diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-06-01 11:42:14 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 21:34:07 +0200 |
commit | f079c25ab8a7d223875c5bac9b23b484e4a18f88 (patch) | |
tree | de5d3fbad8b2f9f7ff8b66410ab7eb7a96e63167 /sound | |
parent | [ALSA] bt87x: add Voodoo TV 200 whitelist entry (diff) | |
download | linux-f079c25ab8a7d223875c5bac9b23b484e4a18f88.tar.xz linux-f079c25ab8a7d223875c5bac9b23b484e4a18f88.zip |
[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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 0154389bf95b..4070b5cd9b6b 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -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); |