28 Nov
2023
28 Nov
'23
3:15 p.m.
On Fri, Nov 17, 2023 at 09:16:06PM +0100, Kamil Duljas wrote:
adata->fw_code_bin = kasprintf(GFP_KERNEL, "%s/sof-%s-code.bin",
plat_data->fw_filename_prefix,
chip->name);
plat_data->fw_filename_prefix,
chip->name);
Plese don't include spurious indentation changes like this, it just makes the diff much harder to read.
if (!adata->fw_code_bin)
adata->fw_data_bin = kasprintf(GFP_KERNEL, "%s/sof-%s-data.bin",return -ENOMEM;
plat_data->fw_filename_prefix,
chip->name);
plat_data->fw_filename_prefix,
chip->name);
if (!adata->fw_data_bin)
return -ENOMEM;
This now leaks the code binary...