summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2026-07-06 11:32:11 +0200
committerChen-Yu Tsai <wens@kernel.org>2026-07-06 22:40:24 +0800
commit81f4ddc9f7e0c11d3e9d24d0f30023845a02f7ee (patch)
tree103fb8a25111f522e344a496043c7f9c9c0f9139 /include/linux/stackprotector.h
parent38d6b194a21c8626647b0a773bb8db5f2b84b0ad (diff)
clk: sunxi-ng: fix ccu probe clock unregister on error
When registering clocks with sunxi_ccu_probe(), the number of ccu_clocks and the number of hw clocks might be different, eventhough they usually are the same. If they are different, it could lead to out-of-bound access or registered clock left behind on error. Use a different variable when iterating on hw clocks so every registered clock, and only those, gets unregistered on error. Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/r/20260629131254.7E34C1F00A3A@smtp.kernel.org Reviewed-by: Chen-Yu Tsai <wens@kernel.org> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://patch.msgid.link/20260706-a733-rtc-v4-3-f330728db3d3@baylibre.com Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions