Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293511
b: refs/heads/master
c: 181a689
h: refs/heads/master
i:
  293509: 3ef883b
  293507: 506a378
  293503: f9b1b15
v: v3
  • Loading branch information
Mark Brown committed Mar 15, 2012
1 parent 9a62ba9 commit d13b708
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 4eb98f45b77b00868dcebe4a0f00d2a36afd88c2
refs/heads/master: 181a68927b9e6ff7c0ea093c2f056eeb0552a911
8 changes: 4 additions & 4 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,6 @@ static int soc_cleanup_card_resources(struct snd_soc_card *card)

snd_soc_dapm_free(&card->dapm);

kfree(card->rtd);
snd_card_free(card->snd_card);
return 0;

Expand Down Expand Up @@ -3112,9 +3111,10 @@ int snd_soc_register_card(struct snd_soc_card *card)

soc_init_card_debugfs(card);

card->rtd = kzalloc(sizeof(struct snd_soc_pcm_runtime) *
(card->num_links + card->num_aux_devs),
GFP_KERNEL);
card->rtd = devm_kzalloc(card->dev,
sizeof(struct snd_soc_pcm_runtime) *
(card->num_links + card->num_aux_devs),
GFP_KERNEL);
if (card->rtd == NULL)
return -ENOMEM;
card->rtd_aux = &card->rtd[card->num_links];
Expand Down

0 comments on commit d13b708

Please sign in to comment.