diff options
author | Arnd Bergmann <[email protected]> | 2023-05-11 12:58:33 +0200 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-06-14 17:22:17 -0700 |
commit | 23200a4c8ac284f8b4263d7cecaefecaa3ad6732 (patch) | |
tree | e43ae9ea88536aad33a18eea5552ab1d4bc7e061 /lib/mpi/mpi-bit.c | |
parent | 2a809ddca08d0d1b9ac961815ce04305814e179b (diff) |
clk: pxa: fix NULL pointer dereference in pxa3xx_clk_update_accr
sparse points out an embarrasing bug in an older patch of mine,
which uses the register offset instead of an __iomem pointer:
drivers/clk/pxa/clk-pxa3xx.c:167:9: sparse: sparse: Using plain integer as NULL pointer
Unlike sparse, gcc and clang ignore this bug and fail to warn
because a literal '0' is considered a valid representation of
a NULL pointer.
Fixes: 3c816d950a49 ("ARM: pxa: move clk register definitions to driver")
Cc: [email protected]
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions