Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 6668610b4d8c ("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>

authored by

Hans de Goede and committed by
Mark Brown
c1895ba1 d221b844

+1 -1
+1 -1
sound/soc/intel/atom/sst/sst_acpi.c
··· 308 308 rsrc = platform_get_resource(pdev, IORESOURCE_MEM, 309 309 pdata->res_info->acpi_lpe_res_index); 310 310 if (!rsrc) { 311 - dev_err(ctx->dev, "Invalid SHIM base\n"); 311 + dev_err(dev, "Invalid SHIM base\n"); 312 312 return -EIO; 313 313 } 314 314 rsrc->start -= pdata->res_info->shim_offset;