diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-09-05 21:39:12 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-09-05 21:39:12 +0200 |
commit | 5491089121757e72380f6725d3a49a63e97b31d8 (patch) | |
tree | b12a595959395e0473f16bd3e58050968c0979a0 /sound | |
parent | f05a9cc4176c1432bca85b184bcacea7d83cf84e (diff) |
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>
Signed-off-by: Adrian Bunk <bunk@stusta.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 fd12b6991fe4..0ff38cbe7471 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1364,10 +1364,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); |