diff options
author | 2022-12-23 17:40:17 +0300 | |
---|---|---|
committer | 2023-01-12 17:18:48 +0100 | |
commit | fbfd614aeaa2853c2c575299dfe2458db8eff67e (patch) | |
tree | 1ef019cb46ddecc57af618c973614870d93e1691 /scripts/generate_rust_analyzer.py | |
parent | clk: renesas: r9a07g044: Add clock and reset entries for CRU (diff) | |
download | linux-rng-fbfd614aeaa2853c2c575299dfe2458db8eff67e.tar.xz linux-rng-fbfd614aeaa2853c2c575299dfe2458db8eff67e.zip |
clk: renesas: cpg-mssr: Fix use after free if cpg_mssr_common_init() failed
If cpg_mssr_common_init() fails after assigning priv to global variable
cpg_mssr_priv, it deallocates priv, but cpg_mssr_priv keeps dangling
pointer that potentially can be used later.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 1f7db7bbf031 ("clk: renesas: cpg-mssr: Add early clock support")
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/1671806417-32623-1-git-send-email-khoroshilov@ispras.ru
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions