summaryrefslogtreecommitdiff
path: root/rust/kernel/workqueue.rs
diff options
context:
space:
mode:
authorFedor Pchelkin <pchelkin@ispras.ru>2025-04-26 15:54:28 +0300
committerStephen Boyd <sboyd@kernel.org>2025-09-21 13:09:12 -0700
commit49ef6491106209c595476fc122c3922dfd03253f (patch)
treee7fa889e44022cb90ddd1b09ee5491725e38b78e /rust/kernel/workqueue.rs
parent41bba99777be40924d99af117e8c220652c20ab6 (diff)
clk: tegra: do not overallocate memory for bpmp clocks
struct tegra_bpmp::clocks is a pointer to a dynamically allocated array of pointers to 'struct tegra_bpmp_clk'. But the size of the allocated area is calculated like it is an array containing actual 'struct tegra_bpmp_clk' objects - it's not true, there are just pointers. Found by Linux Verification Center (linuxtesting.org) with Svace static analysis tool. Fixes: 2db12b15c6f3 ("clk: tegra: Register clocks from root to leaf") Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'rust/kernel/workqueue.rs')
0 files changed, 0 insertions, 0 deletions