[ 3.5.y.z extended stable ] Patch "ALSA: ice1712: Initialize card->private_data properly" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Mon Mar 11 12:07:53 UTC 2013
This is a note to let you know that I have just added a patch titled
ALSA: ice1712: Initialize card->private_data properly
to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From 975b800343c8e750a5fa36db585ec43184436c9c Mon Sep 17 00:00:00 2001
From: Sean Connor <sconnor004 at allyinics.org>
Date: Thu, 28 Feb 2013 09:20:00 -0500
Subject: [PATCH] ALSA: ice1712: Initialize card->private_data properly
commit 69a4cfdd444d1fe5c24d29b3a063964ac165d2cd upstream.
Set card->private_data in snd_ice1712_create for fixing NULL
dereference in snd_ice1712_remove().
Signed-off-by: Sean Connor <sconnor004 at allyinics.org>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
sound/pci/ice1712/ice1712.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c
index 5be2e12..f8189e8 100644
--- a/sound/pci/ice1712/ice1712.c
+++ b/sound/pci/ice1712/ice1712.c
@@ -2595,6 +2595,8 @@ static int __devinit snd_ice1712_create(struct snd_card *card,
snd_ice1712_proc_init(ice);
synchronize_irq(pci->irq);
+ card->private_data = ice;
+
err = pci_request_regions(pci, "ICE1712");
if (err < 0) {
kfree(ice);
--
1.8.1.2
More information about the kernel-team
mailing list