diff options
author | Uwe Kleine-König <[email protected]> | 2022-06-20 19:18:15 +0200 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-06-22 16:10:23 -0700 |
commit | 8b3d743fc9e2542822826890b482afabf0e7522a (patch) | |
tree | 649f7c39377d875d4150c7f126e7fd201158d2e1 /lib/net_utils.c | |
parent | 68bde8b2e3112d2f1ac52cbf078905f902950146 (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 <[email protected]>
Fixes: abae8e57e49a ("clk: generalize devm_clk_get() a bit")
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Marek Szyprowski <[email protected]>
Tested-by: Linux Kernel Functional Testing <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions