Skip to content

Commit c1895ba

Browse files
jwrdegoedebroonie
authored andcommitted
ASoC: Intel: sst: Fix used of uninitialized ctx to log an error
Fix the new "LPE0F28" code path using the uninitialized ctx variable to log an error. Fixes: 6668610 ("ASoC: Intel: sst: Support LPE0F28 ACPI HID") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Hans de Goede <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d221b84 commit c1895ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/intel/atom/sst/sst_acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static int sst_acpi_probe(struct platform_device *pdev)
308308
rsrc = platform_get_resource(pdev, IORESOURCE_MEM,
309309
pdata->res_info->acpi_lpe_res_index);
310310
if (!rsrc) {
311-
dev_err(ctx->dev, "Invalid SHIM base\n");
311+
dev_err(dev, "Invalid SHIM base\n");
312312
return -EIO;
313313
}
314314
rsrc->start -= pdata->res_info->shim_offset;

0 commit comments

Comments
 (0)