summaryrefslogtreecommitdiff
path: root/drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h
diff options
context:
space:
mode:
authorHaoyu Li <lihaoyu499@gmail.com>2024-12-03 17:29:15 +0300
committerStephen Boyd <sboyd@kernel.org>2024-12-04 01:54:12 +0300
commit52fd1709e41d3a85b48bcfe2404a024ebaf30c3b (patch)
tree96600eebe3dd690c1de3a3be24cb7e0efa7aef29 /drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h
parent2eb75f86d52565367211c51334d15fe672633085 (diff)
downloadlinux-52fd1709e41d3a85b48bcfe2404a024ebaf30c3b.tar.xz
clk: en7523: Initialize num before accessing hws in en7523_register_clocks()
With the new __counted_by annotation in clk_hw_onecell_data, the "num" struct member must be set before accessing the "hws" array. Failing to do so will trigger a runtime warning when enabling CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Fixes: f316cdff8d67 ("clk: Annotate struct clk_hw_onecell_data with __counted_by") Signed-off-by: Haoyu Li <lihaoyu499@gmail.com> Link: https://lore.kernel.org/r/20241203142915.345523-1-lihaoyu499@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h')
0 files changed, 0 insertions, 0 deletions