From: Sean Connor Date: Thu, 28 Feb 2013 14:20:00 +0000 (-0500) Subject: ALSA: ice1712: Initialize card->private_data properly X-Git-Tag: v3.9-rc2~10^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=69a4cfdd444d1fe5c24d29b3a063964ac165d2cd;p=karo-tx-linux.git ALSA: ice1712: Initialize card->private_data properly Set card->private_data in snd_ice1712_create for fixing NULL dereference in snd_ice1712_remove(). Signed-off-by: Sean Connor Cc: Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 2ffdc35d5ffd..806407a3973e 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);