diff options
author | Sean Connor <sconnor004@allyinics.org> | 2013-02-28 18:20:00 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-14 22:32:05 +0400 |
commit | 30061508a22179630a1fedbb435a5cfb6d975aaa (patch) | |
tree | 731233f25f61f0a254f9724ad13acb94b884c169 /sound | |
parent | 98fbe03043cfc683297aa1d9787ec0e01a997cc1 (diff) | |
download | linux-30061508a22179630a1fedbb435a5cfb6d975aaa.tar.xz |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/ice1712/ice1712.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index f4594d76b6ea..3ec8fed34565 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); |