summaryrefslogtreecommitdiff
path: root/rust/kernel/irq/request.rs
diff options
context:
space:
mode:
authorYuan CHen <chenyuan@kylinos.cn>2025-09-08 04:28:10 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2025-09-12 10:52:47 +0300
commitcc55fc58fc1b7f405003fd2ecf79e74653461f0b (patch)
tree82b074cdd8a750ad425afea536492eba36b705d2 /rust/kernel/irq/request.rs
parent2cfff084f03005079f900fe6d0a031f7c508e881 (diff)
downloadlinux-cc55fc58fc1b7f405003fd2ecf79e74653461f0b.tar.xz
clk: renesas: cpg-mssr: Fix memory leak in cpg_mssr_reserved_init()
In case of krealloc_array() failure, the current error handling just returns from the function without freeing the original array. Fix this memory leak by freeing the original array. Fixes: 6aa1754764901668 ("clk: renesas: cpg-mssr: Ignore all clocks assigned to non-Linux system") Signed-off-by: Yuan CHen <chenyuan@kylinos.cn> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20250908012810.4767-1-chenyuan_fl@163.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'rust/kernel/irq/request.rs')
0 files changed, 0 insertions, 0 deletions