aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Connor <sconnor004@allyinics.org>2013-02-28 09:20:00 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-14 11:26:24 -0700
commite54d986a8fe9daab94cb7faefb352557557c41f0 (patch)
tree6e6f159a2f757dce79eacab4bae48a45a460c436
parent0bb19997b82e46cb13697adf076145a6c12f19dd (diff)
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@allyinics.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--sound/pci/ice1712/ice1712.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c
index 2ffdc35d5ff..806407a3973 100644
--- a/sound/pci/ice1712/ice1712.c
+++ b/sound/pci/ice1712/ice1712.c
@@ -2594,6 +2594,8 @@ static int 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);