Re: [PATCH v2] scsi: ufs: ufshcd-pltfrm: Use of_property_count_u32_elems() to get property length

From: Bart Van Assche
Date: Thu Aug 08 2024 - 13:09:53 EST


On 8/8/24 10:07 AM, Rob Herring (Arm) wrote:
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.

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>