File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1257,11 +1257,11 @@ static int check_tplg_quirk_mask(struct snd_soc_acpi_mach *mach)
1257
1257
return 0 ;
1258
1258
}
1259
1259
1260
- static char * remove_file_ext (const char * tplg_filename )
1260
+ static char * remove_file_ext (struct device * dev , const char * tplg_filename )
1261
1261
{
1262
1262
char * filename , * tmp ;
1263
1263
1264
- filename = kstrdup ( tplg_filename , GFP_KERNEL );
1264
+ filename = devm_kstrdup ( dev , tplg_filename , GFP_KERNEL );
1265
1265
if (!filename )
1266
1266
return NULL ;
1267
1267
@@ -1345,7 +1345,7 @@ struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev)
1345
1345
*/
1346
1346
if (!sof_pdata -> tplg_filename ) {
1347
1347
/* remove file extension if it exists */
1348
- tplg_filename = remove_file_ext (mach -> sof_tplg_filename );
1348
+ tplg_filename = remove_file_ext (sdev -> dev , mach -> sof_tplg_filename );
1349
1349
if (!tplg_filename )
1350
1350
return NULL ;
1351
1351
You can’t perform that action at this time.
0 commit comments