projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
[firefly-linux-kernel-4.4.55.git]
/
sound
/
soc
/
ux500
/
mop500_ab8500.c
diff --git
a/sound/soc/ux500/mop500_ab8500.c
b/sound/soc/ux500/mop500_ab8500.c
index b81a7a4c938b80e7f1eb43c2e3cfc56b4aa4488a..85d810d7667c1992d53a032c203ecf4631ac88f7 100644
(file)
--- a/
sound/soc/ux500/mop500_ab8500.c
+++ b/
sound/soc/ux500/mop500_ab8500.c
@@
-372,6
+372,10
@@
int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd)
/* Create driver private-data struct */
drvdata = devm_kzalloc(dev, sizeof(struct mop500_ab8500_drvdata),
GFP_KERNEL);
+
+ if (!drvdata)
+ return -ENOMEM;
+
snd_soc_card_set_drvdata(rtd->card, drvdata);
/* Setup clocks */