aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-05-11 20:01:20 +0300
committerStephen Boyd <[email protected]>2023-06-14 17:22:50 -0700
commit9c632a6396505a019ea6d12b5ab45e659a542a93 (patch)
treeccfbc3f16aa11a85315a4d9b32f57a30565d1dcb /lib/mpi/mpi-sub-ui.c
parentda2edb3e3c09fd1451b7f400ccd1070ef086619a (diff)
clk: clocking-wizard: Fix Oops in clk_wzrd_register_divider()
Smatch detected this potential error pointer dereference clk_wzrd_register_divider(). If devm_clk_hw_register() fails then it sets "hw" to an error pointer and then dereferences it on the next line. Return the error directly instead. Fixes: 5a853722eb32 ("staging: clocking-wizard: Add support for dynamic reconfiguration") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Michal Simek <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions