Thread (4 messages) 4 messages, 4 authors, 2026-05-18

Re: [PATCH v2] powerpc: 82xx: fix uninitialized pointers with free attribute

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2026-05-18 05:43:43
Also in: lkml

On Sun, 16 Nov 2025 19:55:44 +0530, Ally Heev wrote:
Uninitialized pointers with `__free` attribute can cause undefined
behavior as the memory allocated to the pointer is freed automatically
when the pointer goes out of scope.

powerpc/km82xx doesn't have any bugs related to this as of now, but,
it is better to initialize and assign pointers with `__free` attribute
in one statement to ensure proper scope-based cleanup

[...]
Applied to powerpc/fixes.

[1/1] powerpc: 82xx: fix uninitialized pointers with free attribute
      https://git.kernel.org/powerpc/c/acd1e47db03d4b528fd5efb8565dd0de1c79f62a

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help