[PATCH] arm: fix uninitialized pointers with free attr
Sudeep Holla
sudeep.holla at arm.com
Thu Jan 1 09:55:26 PST 2026
On Wed, 05 Nov 2025 19:37:52 +0530, Ally Heev wrote:
> Uninitialized pointers with `__free` attribute can cause undefined
> behaviour as the memory assigned(randomly) to the pointer is freed
> automatically when the pointer goes out of scope
>
> arm doesn't have any bugs related to this as of now, but
> it is better to initialize and assign pointers with `__free` attr
> in one statement to ensure proper scope-based cleanup
>
> [...]
Applied with $subject changed to sudeep.holla/linux (for-next/scmi/updates), thanks!
[1/1] arm: fix uninitialized pointers with free attr
https://git.kernel.org/sudeep.holla/c/78b74136affd
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list