]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: SDCA: Correct pointer passed to devm_acpi_table_put
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 22 Jul 2026 10:34:57 +0000 (11:34 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jul 2026 20:10:12 +0000 (21:10 +0100)
devm_acpi_table_put() takes a struct acpi_table_header * but the value
passed in is struct acpi_table_header ** so the value passed to
acpi_put_table() is actually the pointer not the table itself.

Remove the extra reference to correct the passed value.

Fixes: c4d096c3ca42 ("ASoC: SDCA: Add SDCA FDL data parsing")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260722103500.872714-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_device.c

index 405e80b979de8f995e13711d4f6cd8fec2e966b0..4bcd8d1fdff821d243c0321fdf0824aba727f86d 100644 (file)
@@ -43,7 +43,7 @@ void sdca_lookup_swft(struct sdw_slave *slave)
                dev_info(&slave->dev, "SWFT not available\n");
        else
                devm_add_action_or_reset(&slave->dev, devm_acpi_table_put,
-                                        &slave->sdca_data.swft);
+                                        slave->sdca_data.swft);
 }
 EXPORT_SYMBOL_NS(sdca_lookup_swft, "SND_SOC_SDCA");