diff options
| author | Rob Herring (Arm) <robh@kernel.org> | 2024-07-31 23:13:58 +0300 |
|---|---|---|
| committer | Nishanth Menon <nm@ti.com> | 2024-08-07 00:29:13 +0300 |
| commit | b2a0176620db7aa0aa77109d7a8b894755441079 (patch) | |
| tree | 85eadff856faf4413dcece000a62aca0eff7b043 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 8737e167dc55cc00c5818b408f47ba03b6ddb25b (diff) | |
| download | linux-b2a0176620db7aa0aa77109d7a8b894755441079.tar.xz | |
soc: ti: knav: Use of_property_read_variable_u32_array()
There's no need to get the length of an DT array property before
parsing the array. of_property_read_variable_u32_array() takes a minimum
and maximum length and returns the actual length (or error code).
This is part of a larger effort to remove callers of of_find_property()
and similar functions. of_find_property() leaks the DT struct property
and data pointers which is a problem for dynamically allocated nodes
which may be freed.
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240731201407.1838385-3-robh@kernel.org
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
