Re: [PATCH] staging: greybus: Remove Module from list before freeing in gb_audio_module_release
From: Dan Carpenter
Date: Mon Jan 06 2025 - 04:51:18 EST
On Tue, Dec 24, 2024 at 10:49:17AM +0530, Atharva Tiwari wrote:
> Yes I have tested the patch with greybus drivers enabled on Debian 12.It works as expected, and i did not get any errors or warning during the compilation
>
> Please let me know if further changes are required.
>
You're trying to ensure that the list is initialized but instead of testing
for that, the correct way is to initialize it earlier in the process.
regards,
dan carpenter