diff options
author | Dan Carpenter <[email protected]> | 2023-12-12 12:21:51 +0300 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2023-12-15 23:35:54 -0600 |
commit | df14d214105e29d0e734aa36445888bd2b0dde78 (patch) | |
tree | 2bdb1d29bd691f646aed715b4719838d299bd17a /arch/s390/lib/test_modules_helpers.c | |
parent | f6bda45310ff165fdd69b8c3eb6679f0552f8a5f (diff) |
clk: qcom: camcc-sc8280xp: Prevent error pointer dereference
If "regmap" is an error pointer then calling regmap_update_bits() will
crash. We only need to call regmap_update_bits() if we had written to
it earlier.
Fixes: ff93872a9c61 ("clk: qcom: camcc-sc8280xp: Add sc8280xp CAMCC")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Abel Vesa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'arch/s390/lib/test_modules_helpers.c')
0 files changed, 0 insertions, 0 deletions