Skip to content

Commit

Permalink
ALSA: ice1712: Initialize card->private_data properly
Browse files Browse the repository at this point in the history
Set card->private_data in snd_ice1712_create for fixing NULL
dereference in snd_ice1712_remove().

Signed-off-by: Sean Connor <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Sean Connor authored and tiwai committed Mar 7, 2013
1 parent 84dfd0a commit 69a4cfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/ice1712/ice1712.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69a4cfd

Please sign in to comment.