Loading sound/soc/codecs/tas5805m.c +1 −2 Original line number Diff line number Diff line Loading @@ -520,12 +520,11 @@ static int tas5805m_i2c_probe(struct i2c_client *i2c) } tas5805m->dsp_cfg_len = fw->size; tas5805m->dsp_cfg_data = devm_kmalloc(dev, fw->size, GFP_KERNEL); tas5805m->dsp_cfg_data = devm_kmemdup(dev, fw->data, fw->size, GFP_KERNEL); if (!tas5805m->dsp_cfg_data) { release_firmware(fw); return -ENOMEM; } memcpy(tas5805m->dsp_cfg_data, fw->data, fw->size); release_firmware(fw); Loading sound/soc/sof/ipc3.c +1 −4 Original line number Diff line number Diff line Loading @@ -567,13 +567,10 @@ int sof_ipc3_get_cc_info(struct snd_sof_dev *sdev, /* create read-only cc_version debugfs to store compiler version info */ /* use local copy of the cc_version to prevent data corruption */ if (sdev->first_boot) { sdev->cc_version = devm_kmalloc(sdev->dev, cc->ext_hdr.hdr.size, GFP_KERNEL); sdev->cc_version = devm_kmemdup(sdev->dev, cc, cc->ext_hdr.hdr.size, GFP_KERNEL); if (!sdev->cc_version) return -ENOMEM; memcpy(sdev->cc_version, cc, cc->ext_hdr.hdr.size); ret = snd_sof_debugfs_buf_item(sdev, sdev->cc_version, cc->ext_hdr.hdr.size, "cc_version", 0444); Loading Loading
sound/soc/codecs/tas5805m.c +1 −2 Original line number Diff line number Diff line Loading @@ -520,12 +520,11 @@ static int tas5805m_i2c_probe(struct i2c_client *i2c) } tas5805m->dsp_cfg_len = fw->size; tas5805m->dsp_cfg_data = devm_kmalloc(dev, fw->size, GFP_KERNEL); tas5805m->dsp_cfg_data = devm_kmemdup(dev, fw->data, fw->size, GFP_KERNEL); if (!tas5805m->dsp_cfg_data) { release_firmware(fw); return -ENOMEM; } memcpy(tas5805m->dsp_cfg_data, fw->data, fw->size); release_firmware(fw); Loading
sound/soc/sof/ipc3.c +1 −4 Original line number Diff line number Diff line Loading @@ -567,13 +567,10 @@ int sof_ipc3_get_cc_info(struct snd_sof_dev *sdev, /* create read-only cc_version debugfs to store compiler version info */ /* use local copy of the cc_version to prevent data corruption */ if (sdev->first_boot) { sdev->cc_version = devm_kmalloc(sdev->dev, cc->ext_hdr.hdr.size, GFP_KERNEL); sdev->cc_version = devm_kmemdup(sdev->dev, cc, cc->ext_hdr.hdr.size, GFP_KERNEL); if (!sdev->cc_version) return -ENOMEM; memcpy(sdev->cc_version, cc, cc->ext_hdr.hdr.size); ret = snd_sof_debugfs_buf_item(sdev, sdev->cc_version, cc->ext_hdr.hdr.size, "cc_version", 0444); Loading