Re: [PATCH] ASoC: amd: Adjust error handling in case of absent codec device
From: Mark Brown
Date: Wed Jul 03 2024 - 12:51:17 EST
On Wed, Jul 03, 2024 at 07:40:28PM +0300, Aleksandr Mishin wrote:
> acpi_get_first_physical_node() can return NULL in several cases (no such
> device, ACPI table error, reference count drop to 0, etc).
> Existing check just emit error message, but doesn't perform return.
>
> Adjust this error handling by adding error code return.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
I am not seeing any analysis here about the correctness of this new
error handling.
Attachment:
signature.asc
Description: PGP signature