ASoC: Intel: sst: Fix used of uninitialized ctx to log an error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hans de Goede <hdegoede@xxxxxxxxxx>

commit c1895ba181e560144601fafe46aeedbafdf4dbc4 upstream.

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@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202410261106.EBx49ssy-lkp@xxxxxxxxx/
Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
Link: https://patch.msgid.link/20241026143615.171821-1-hdegoede@xxxxxxxxxx
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 sound/soc/intel/atom/sst/sst_acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/soc/intel/atom/sst/sst_acpi.c
+++ b/sound/soc/intel/atom/sst/sst_acpi.c
@@ -309,7 +309,7 @@ static int sst_acpi_probe(struct platfor
 		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;


Patches currently in stable-queue which might be from hdegoede@xxxxxxxxxx are

queue-5.15/media-atomisp-add-check-for-rgby_data-memory-allocat.patch
queue-5.15/platform-x86-panasonic-laptop-return-errno-correctly.patch
queue-5.15/asoc-intel-sst-fix-used-of-uninitialized-ctx-to-log-an-error.patch
queue-5.15/asoc-intel-bytcr_rt5640-add-dmi-quirk-for-vexia-edu-.patch
queue-5.15/asoc-intel-bytcr_rt5640-add-support-for-non-acpi-ins.patch
queue-5.15/platform-x86-dell-smbios-base-extends-support-to-ali.patch
queue-5.15/platform-x86-panasonic-laptop-replace-snprintf-in-sh.patch
queue-5.15/asoc-intel-sst-support-lpe0f28-acpi-hid.patch
queue-5.15/platform-x86-dell-wmi-base-handle-meta-key-lock-unlo.patch
queue-5.15/mfd-intel_soc_pmic_bxtwc-use-irq-domain-for-tmu-devi.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux