summaryrefslogtreecommitdiff
path: root/arch/sandbox/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-12-05 17:03:36 -0600
committerTom Rini <[email protected]>2025-12-05 17:03:36 -0600
commitbc1819331ece7aa4e7d0573c9cdacdb8efbdb067 (patch)
tree9a669ac84720f4530171d90dac826e057e5b216c /arch/sandbox/include
parent1165e8efcba0ab3efd1ea4ff956d26746fc386b0 (diff)
parent33285945518731ed459680ffb01891c4804fb6c9 (diff)
Merge patch series "clk: Return value calculated by ERR_PTR"
Andrew Goodbody <[email protected]> says: 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. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/sandbox/include')
-rw-r--r--arch/sandbox/include/asm/clk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/clk.h b/arch/sandbox/include/asm/clk.h
index 37fe49c7fcf..2d3318cdcc4 100644
--- a/arch/sandbox/include/asm/clk.h
+++ b/arch/sandbox/include/asm/clk.h
@@ -50,6 +50,7 @@ enum sandbox_clk_test_id {
struct sandbox_clk_priv {
bool probed;
+ struct clk clk;
ulong rate[SANDBOX_CLK_ID_COUNT];
bool enabled[SANDBOX_CLK_ID_COUNT];
bool requested[SANDBOX_CLK_ID_COUNT];