diff options
author | 2024-08-08 11:07:03 -0600 | |
---|---|---|
committer | 2024-08-12 18:17:43 -0400 | |
commit | eab0dce11dd91410204aae39d33124d9c16ab5f0 (patch) | |
tree | 6ed8641519e0e26af66dc991c8b6f1f86110e275 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | scsi: ufs: ufshcd-pltfrm: Use of_property_present() (diff) | |
download | wireguard-linux-eab0dce11dd91410204aae39d33124d9c16ab5f0.tar.xz wireguard-linux-eab0dce11dd91410204aae39d33124d9c16ab5f0.zip |
scsi: ufs: ufshcd-pltfrm: 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) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240808170704.1438658-1-robh@kernel.org
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions