diff options
author | Rob Herring (Arm) <robh@kernel.org> | 2024-07-31 14:13:59 -0600 |
---|---|---|
committer | Robert Foss <rfoss@kernel.org> | 2024-08-19 15:27:43 +0200 |
commit | 11c742bb5a26d4adc873f6e6e2b69a59e1eae285 (patch) | |
tree | db4e396072b3b417e2cc4f81227e1754844d2051 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 737ad3776343f6fcffee9d0d849dcd6f6b25f05a (diff) |
drm: bridge: anx7625: Use of_property_read_variable_u8_array()
There's no need to get the length of an DT array property before
parsing the array. of_property_read_variable_u8_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_get_property()
and similar functions. of_get_property() leaks the DT property data
pointer which is a problem for dynamically allocated nodes which may
be freed.
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731201407.1838385-4-robh@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions