Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: core: Fix Null-point-dereference in fmt_single_name()
commit 41daf6b upstream. Check the return value of devm_kstrdup() in case of Null-point-dereference. Fixes: 45dd994 ("ASoC: core: remove artificial component and DAI name constraint") Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Link: https://lore.kernel.org/r/20210524024941.159952-1-wangkefeng.wang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information