Skip to content

Commit 69a4cfd

Browse files
Sean Connortiwai
authored andcommitted
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 <sconnor004@allyinics.org> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 84dfd0a commit 69a4cfd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎sound/pci/ice1712/ice1712.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2594,6 +2594,8 @@ static int snd_ice1712_create(struct snd_card *card,
25942594
snd_ice1712_proc_init(ice);
25952595
synchronize_irq(pci->irq);
25962596

2597+
card->private_data = ice;
2598+
25972599
err = pci_request_regions(pci, "ICE1712");
25982600
if (err < 0) {
25992601
kfree(ice);

0 commit comments

Comments
 (0)