diff options
| author | 2026-09-22 11:06:01 +0000 | |
|---|---|---|
| committer | 2026-09-24 15:24:57 -0400 | |
| commit | a1f2029b89ccd7bef54e187384417db4d72d0a11 (patch) | |
| tree | e2c1fbc5dea1b468e2b51b5d7ac2ce8d6b7448a3 /scripts/Makefile.thinlto | |
| parent | rust: clk: document overflow panics in `Hertz` constructors (diff) | |
clk: tegra: annotate struct tegra210_clk_emc_provider with __counted_by_ptr
Annotate the "configs" pointer field of "struct
tegra210_clk_emc_provider" with the "__counted_by_ptr" attribute,
allowing the compiler to perform runtime bounds checking on accesses to
"configs" based on the value of "num_configs".
The "emc->provider.configs = devm_kcalloc(...)" call uses
"emc->num_timings" for the number of elements, which is then assigned to
"emc->provider.num_configs" before any accesses to "configs". The
"num_configs" field isn't modified after assignment.
Cc: codemender-patching+linux@google.com
Assisted-by: LLM
Signed-off-by: Bill Wendling <morbo@google.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
