aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/lib/py/env.py
diff options
context:
space:
mode:
authorRob Herring (Arm) <[email protected]>2024-07-31 20:15:15 +0000
committerJakub Kicinski <[email protected]>2024-08-02 01:13:15 +0000
commit0b0e9cdb3d1f8fda823b592b0667b4b0595e2ba7 (patch)
tree50ddbb8fd9afc2fdef789e317cb47330c4b3ccc5 /tools/testing/selftests/drivers/net/lib/py/env.py
parentnet: phy: qca807x: Drop unnecessary and broken DT validation (diff)
downloadkernel-0b0e9cdb3d1f8fda823b592b0667b4b0595e2ba7.tar.gz
kernel-0b0e9cdb3d1f8fda823b592b0667b4b0595e2ba7.zip
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/testing/selftests/drivers/net/lib/py/env.py')
0 files changed, 0 insertions, 0 deletions