diff options
author | Mark Brown <broonie@sirena.org.uk> | 2021-05-25 18:44:26 +0300 |
---|---|---|
committer | Mark Brown <broonie@sirena.org.uk> | 2021-05-25 18:44:26 +0300 |
commit | d4e9889b02014a07c8dba3fbbae7205ea4084350 (patch) | |
tree | 66038b2d9e18c8a63ccc3ef7ff96809e96136bac /sound/soc/soc-core.c | |
parent | eb37ca9c98ae1a61eb9bbe157d320bbe858adbf4 (diff) | |
parent | 41daf6ba594d55f201c50280ebcd430590441da1 (diff) | |
download | linux-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.c | 2 |
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); |