[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <172407440450.1407402.570433127422255941.b4-ty@kernel.org>
Date: Mon, 19 Aug 2024 15:33:24 +0200
From: Robert Foss <rfoss@...nel.org>
To: Andrzej Hajda <andrzej.hajda@...el.com>,
Neil Armstrong <neil.armstrong@...aro.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jonas Karlman <jonas@...boo.se>, Jernej Skrabec <jernej.skrabec@...il.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
"Rob Herring (Arm)" <robh@...nel.org>
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm: bridge: anx7625: Use
of_property_read_variable_u8_array()
On Wed, 31 Jul 2024 14:13:59 -0600, Rob Herring (Arm) wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] drm: bridge: anx7625: Use of_property_read_variable_u8_array()
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/11c742bb5a26
Rob
Powered by blists - more mailing lists