Re: wifi: iwlwifi: Fix uninitialized variable with __free()

From: Markus Elfring
Date: Wed Mar 12 2025 - 16:17:12 EST


>> Can it be recommended to reduce the scope for the affected local variable instead?
>> https://elixir.bootlin.com/linux/v6.14-rc6/source/include/linux/cleanup.h#L129-L133
>
> As said in reply to Jeff's review -
> This is recommended if you have multiple __kfree variables (and the order of freeing matters)
> Or if there is a guard() later in the function.
How does such a view fit to the documentation of this programming interface?

Regards,
Markus