]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: ice1712: Initialize card->private_data properly
authorSean Connor <sconnor004@allyinics.org>
Thu, 28 Feb 2013 14:20:00 +0000 (09:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:32:05 +0000 (11:32 -0700)
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>
sound/pci/ice1712/ice1712.c

index f4594d76b6ea216a9065a1694189e9838c023e9f..3ec8fed34565a51031c1b5260fa50f80ee2cedf3 100644 (file)
@@ -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);