mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
UPSTREAM: 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/
Change-Id: I3d6d18dd8bcdaac61e5a9728de1e85452f612629
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>
(cherry picked from commit c1895ba181e560144601fafe46aeedbafdf4dbc4)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9c7193f1e7
commit
9a8c28486f
@@ -309,7 +309,7 @@ static int sst_acpi_probe(struct platform_device *pdev)
|
||||
rsrc = platform_get_resource(pdev, IORESOURCE_MEM,
|
||||
pdata->res_info->acpi_lpe_res_index);
|
||||
if (!rsrc) {
|
||||
dev_err(ctx->dev, "Invalid SHIM base\n");
|
||||
dev_err(dev, "Invalid SHIM base\n");
|
||||
return -EIO;
|
||||
}
|
||||
rsrc->start -= pdata->res_info->shim_offset;
|
||||
|
||||
Reference in New Issue
Block a user