Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASoC: SOF: Intel: always check the result of acpi_dev_get_first_match… #5117

Commits on Jul 24, 2024

  1. ASoC: Intel: boards: always check the result of acpi_dev_get_first_ma…

    …tch_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.
    
    Link: https://lore.kernel.org/alsa-devel/918944d2-3d00-465e-a9d1-5d57fc966113@stanley.mountain/T/#u
    Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    plbossart committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    cdd1206 View commit details
    Browse the repository at this point in the history