mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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 <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/aPiG_F5EBQUjZqsl@stanley.mountain/
Signed-off-by: Ally Heev <allyheev@gmail.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| ep8248e.c | ||
| Kconfig | ||
| km82xx.c | ||
| Makefile | ||
| pq2.c | ||
| pq2.h | ||