Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f079c25a authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela
Browse files

[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: default avatarTakashi Iwai <tiwai@suse.de>
parent 29463dfe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);