diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-06-01 14:47:29 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 21:34:08 +0200 |
commit | 0a50d2b2951cb7ae12726814f9a198e1c699aa0b (patch) | |
tree | 38197874a92ead9bf652732d2dc03ecafe3bfdaf /sound/pci/riptide/riptide.c | |
parent | f079c25ab8a7d223875c5bac9b23b484e4a18f88 (diff) | |
download | kernel_goldelico_gta04-0a50d2b2951cb7ae12726814f9a198e1c699aa0b.zip kernel_goldelico_gta04-0a50d2b2951cb7ae12726814f9a198e1c699aa0b.tar.gz kernel_goldelico_gta04-0a50d2b2951cb7ae12726814f9a198e1c699aa0b.tar.bz2 |
[ALSA] Fix possible races in PCI driver removal
Call free_irq() before releasing others to avoid races when
shared irq is issued.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/riptide/riptide.c')
-rw-r--r-- | sound/pci/riptide/riptide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index c27cd49..5618ec9 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c @@ -1836,11 +1836,11 @@ static int snd_riptide_free(struct snd_riptide *chip) UNSET_GRESET(cif->hwport); kfree(chip->cif); } + if (chip->irq >= 0) + free_irq(chip->irq, chip); if (chip->fw_entry) release_firmware(chip->fw_entry); release_and_free_resource(chip->res_port); - if (chip->irq >= 0) - free_irq(chip->irq, chip); kfree(chip); return 0; } |