aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_controller.c')
-rw-r--r--sound/pci/hda/hda_controller.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c
index d1eb14842340..a12e594d4e3b 100644
--- a/sound/pci/hda/hda_controller.c
+++ b/sound/pci/hda/hda_controller.c
@@ -748,8 +748,10 @@ int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec,
748 return err; 748 return err;
749 strlcpy(pcm->name, cpcm->name, sizeof(pcm->name)); 749 strlcpy(pcm->name, cpcm->name, sizeof(pcm->name));
750 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL); 750 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL);
751 if (apcm == NULL) 751 if (apcm == NULL) {
752 snd_device_free(chip->card, pcm);
752 return -ENOMEM; 753 return -ENOMEM;
754 }
753 apcm->chip = chip; 755 apcm->chip = chip;
754 apcm->pcm = pcm; 756 apcm->pcm = pcm;
755 apcm->codec = codec; 757 apcm->codec = codec;