aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/clk-xgene.c
diff options
context:
space:
mode:
authorUwe Kleine-König2022-06-20 19:18:15 +0200
committerStephen Boyd2022-06-22 16:10:23 -0700
commit8b3d743fc9e2542822826890b482afabf0e7522a (patch)
tree649f7c39377d875d4150c7f126e7fd201158d2e1 /drivers/clk/clk-xgene.c
parent68bde8b2e3112d2f1ac52cbf078905f902950146 (diff)
clk: Fix pointer casting to prevent oops in devm_clk_release()
The release function is called with a pointer to the memory returned by devres_alloc(). I was confused about that by the code before the generalization that used a struct clk **ptr. Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Fixes: abae8e57e49a ("clk: generalize devm_clk_get() a bit") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220620171815.114212-1-u.kleine-koenig@pengutronix.de Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Tested-by: Linux Kernel Functional Testing <lkft@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-xgene.c')
0 files changed, 0 insertions, 0 deletions