summaryrefslogtreecommitdiff
path: root/drivers/phy/eswin/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-05-22 14:44:07 -0700
committerSteven Rostedt <rostedt@goodmis.org>2026-05-29 11:20:47 -0400
commitbfda3b9424e02c6b2afac74410457c9c1743ba4a (patch)
treee458479dcd0b1724bd265a63bbae47a9d0135e55 /drivers/phy/eswin/git@git.tavy.me:linux.git
parent292c8197e3685aa7ea5a3803ca240b2210fcd021 (diff)
tracing: Turn hist_elt_data field_var_str into a flexible array
The field_var_str array was allocated separately via kcalloc() with its length already known at elt_data allocation time. Convert it to a flexible array member and fold the two allocations into a single kzalloc_flex(), reordering hist_trigger_elt_data_alloc() so n_str is computed and bounds-checked before the struct allocation. hist_elt_data is only reached through tracing_map_elt::private_data (a void *), never embedded, so adding a FAM imposes no tail-position constraint on any enclosing struct. Added __counted_by for extra runtime analysis. Link: https://patch.msgid.link/20260522214407.18120-1-rosenp@gmail.com Assisted-by: Claude:Opus-4.7 Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions