Skip to content
Commit fbfd614a authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Geert Uytterhoeven
Browse files

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: 1f7db7bb ("clk: renesas: cpg-mssr: Add early clock support")
Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/1671806417-32623-1-git-send-email-khoroshilov@ispras.ru


Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent a278d0c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment