[PATCH v2 0/3] clk: Return value calculated by ERR_PTR
Tom Rini
trini at konsulko.com
Sat Dec 6 15:10:59 CET 2025
On Fri, 21 Nov 2025 17:34:30 +0000, Andrew Goodbody wrote:
> Smatch reported an error where a value calculated by ERR_PTR was not
> used. Fixing this to return the generated value led to a test failure
> which meant updating the sandbox clock code so that it would still cause
> the tests to pass with the above correction.
> Debugging this problem led to a SIGSEGV which is addressed in 1/3.
> Possible memory leaks noticed are addressed in 3/3.
>
> [...]
Applied to u-boot/next, thanks!
[1/3] clk: Prevent SIGSEGV on debug
commit: 1c0a46e2918a1ddf42f51449e45077513dd52417
[2/3] clk: Return value calculated by ERR_PTR
commit: fe780310cfa8bf5a093894b5cd7fe85c6b02fd91
[3/3] clk: Prevent memory leak on error
commit: 33285945518731ed459680ffb01891c4804fb6c9
--
Tom
More information about the U-Boot
mailing list