On 16/11/2025 15:25, 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 > > Reported-by: Dan Carpenter <[email protected]> > Closes: https://lore.kernel.org/all/[email protected]/ > Signed-off-by: Ally Heev <[email protected]> > --- > Changes in v2: > - updated commit description > - Link to v1: > https://lore.kernel.org/r/20251104-aheev-uninitialized-free-attr-km82xx-v1-1-903be69f2...@gmail.com > ---
This is the correct approach and the original patch should have never been amended while applying. Reviewed-by: Krzysztof Kozlowski <[email protected]> Best regards, Krzysztof
