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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: tegra210_ahub: Add check to of_device_get_match_data()

In tegra_ahub_probe(), check the result of function
of_device_get_match_data(), return an error code in case it fails.

Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://patch.msgid.link/20250513123744.3041724-1-ruc_gongyuanjun@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Yuanjun Gong and committed by
Mark Brown
04cb269c 85f8c2d5

+2
+2
sound/soc/tegra/tegra210_ahub.c
··· 1359 1359 return -ENOMEM; 1360 1360 1361 1361 ahub->soc_data = of_device_get_match_data(&pdev->dev); 1362 + if (!ahub->soc_data) 1363 + return -ENODEV; 1362 1364 1363 1365 platform_set_drvdata(pdev, ahub); 1364 1366