[lvc-project] [PATCH] ASoC: amd: Adjust error handling in case of absent codec device

Mark Brown broonie at kernel.org
Wed Jul 3 19:50:43 MSK 2024


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://linuxtesting.org/pipermail/lvc-project/attachments/20240703/7227c8bc/attachment.pgp>


More information about the lvc-project mailing list