diff options
author | Pierre-Louis Bossart <[email protected]> | 2024-08-27 20:32:01 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-08-28 13:01:53 +0100 |
commit | 14e91ddd5c02d8c3e5a682ebfa0546352b459911 (patch) | |
tree | 6a1e1917c3d52fb20f18d0db54df46b3315daf0f /tools/perf/scripts/python/netdev-times.py | |
parent | 1ab959bea29c265d7d219346a72ed15b2490d956 (diff) |
ASoC: Intel: boards: always check the result of acpi_dev_get_first_match_dev()
The code seems mostly copy-pasted, with some machine drivers
forgetting to test if the 'adev' result is NULL.
Add this check when missing, and use -ENOENT consistently as an error
code.
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/alsa-devel/[email protected]/T/#u
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Péter Ujfalusi <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions