diff options
author | Rob Herring (Arm) <[email protected]> | 2024-07-31 14:15:15 -0600 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-08-01 18:13:15 -0700 |
commit | 0b0e9cdb3d1f8fda823b592b0667b4b0595e2ba7 (patch) | |
tree | 50ddbb8fd9afc2fdef789e317cb47330c4b3ccc5 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 46e6acfe3501fa938af9c5bd730f0020235b08a2 (diff) |
net: mdio: Use of_property_count_u32_elems() to get property length
Replace of_get_property() with the type specific
of_property_count_u32_elems() to get the property length.
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) <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions