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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202410261106.EBx49ssy-lkp@intel.com/ Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://patch.msgid.link/20241026143615.171821-1-hdegoede@redhat.com Signed-off-by: Mark Brown <broonie@kernel.org>
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)