summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@sirena.org.uk>2021-05-25 18:44:26 +0300
committerMark Brown <broonie@sirena.org.uk>2021-05-25 18:44:26 +0300
commitd4e9889b02014a07c8dba3fbbae7205ea4084350 (patch)
tree66038b2d9e18c8a63ccc3ef7ff96809e96136bac /sound/soc/soc-core.c
parenteb37ca9c98ae1a61eb9bbe157d320bbe858adbf4 (diff)
parent41daf6ba594d55f201c50280ebcd430590441da1 (diff)
downloadlinux-d4e9889b02014a07c8dba3fbbae7205ea4084350.tar.xz
Merge branch 'for-5.13' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.14
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 2d969e31f37d..962c527a1d1e 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2225,6 +2225,8 @@ static char *fmt_single_name(struct device *dev, int *id)
return NULL;
name = devm_kstrdup(dev, devname, GFP_KERNEL);
+ if (!name)
+ return NULL;
/* are we a "%s.%d" name (platform and SPI components) */
found = strstr(name, dev->driver->name);