Re: [PATCH] sound/pci/mixart/mixart.c: Add missing snd_card_free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Thu, 27 Nov 2008 14:33:30 +0100 (CET),
Julia Lawall wrote:
> 
> Oops, please ignore this patch.  There is a problem, but the modification 
> is not correct.

How about the patch below?


Takashi

---
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c
index ae7601f..3cccfed 100644
--- a/sound/pci/mixart/mixart.c
+++ b/sound/pci/mixart/mixart.c
@@ -989,6 +989,7 @@ static int snd_mixart_pcm_digital(struct snd_mixart *chip)
 
 static int snd_mixart_chip_free(struct snd_mixart *chip)
 {
+	chip->mgr->chip[chip->chip_idx] = NULL;
 	kfree(chip);
 	return 0;
 }
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux