diff options
author | Mark Brown <broonie@kernel.org> | 2022-05-04 15:30:32 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-04 15:30:32 +0100 |
commit | c0b38be14f1d843c29edc763d3df3cc741a2bf10 (patch) | |
tree | 7b4923fbd72134f891faa6866246e16b8a4b30dc /drivers | |
parent | 55d2a66cfec6a4196243940f754f5b34dd2106bf (diff) | |
parent | a962890a5a3cce903ff7c7a19fadee63ed9efdc7 (diff) | |
download | lwn-c0b38be14f1d843c29edc763d3df3cc741a2bf10.tar.gz lwn-c0b38be14f1d843c29edc763d3df3cc741a2bf10.zip |
ASoC: Pull in fixes
Cleanups for the dmaengine code build on top of current fixes.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firmware/cirrus/cs_dsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firmware/cirrus/cs_dsp.c b/drivers/firmware/cirrus/cs_dsp.c index e48108e694f8..7dad6f57d970 100644 --- a/drivers/firmware/cirrus/cs_dsp.c +++ b/drivers/firmware/cirrus/cs_dsp.c @@ -955,8 +955,7 @@ static int cs_dsp_create_control(struct cs_dsp *dsp, ctl->alg_region = *alg_region; if (subname && dsp->fw_ver >= 2) { ctl->subname_len = subname_len; - ctl->subname = kmemdup(subname, - strlen(subname) + 1, GFP_KERNEL); + ctl->subname = kasprintf(GFP_KERNEL, "%.*s", subname_len, subname); if (!ctl->subname) { ret = -ENOMEM; goto err_ctl; |