Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206609
b: refs/heads/master
c: 50e8ce1
h: refs/heads/master
i:
  206607: b47861a
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Mark Brown committed Jul 17, 2010
1 parent 0a22015 commit dd67050
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51b6dfb627d785ee92c2bd1e159e2de47cdc29c3
refs/heads/master: 50e8ce14698273d3c493b2e66f323f6b18eac099
6 changes: 5 additions & 1 deletion trunk/sound/soc/imx/imx-pcm-fiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ static int snd_imx_open(struct snd_pcm_substream *substream)
int ret;

iprtd = kzalloc(sizeof(*iprtd), GFP_KERNEL);
if (iprtd == NULL)
return -ENOMEM;
runtime->private_data = iprtd;

iprtd->substream = substream;
Expand All @@ -202,8 +204,10 @@ static int snd_imx_open(struct snd_pcm_substream *substream)

ret = snd_pcm_hw_constraint_integer(substream->runtime,
SNDRV_PCM_HW_PARAM_PERIODS);
if (ret < 0)
if (ret < 0) {
kfree(iprtd);
return ret;
}

snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware);
return 0;
Expand Down

0 comments on commit dd67050

Please sign in to comment.