From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent() Date: Tue, 22 Aug 2017 09:49:35 -0500 Message-ID: References: <20170822001912.27638-1-niklas.soderlund+renesas@ragnatech.se> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <20170822001912.27638-1-niklas.soderlund+renesas@ragnatech.se> Sender: linux-media-owner@vger.kernel.org To: =?UTF-8?Q?Niklas_S=C3=B6derlund?= Cc: "devicetree@vger.kernel.org" , "linux-media@vger.kernel.org" , Sakari Ailus , Kieran Bingham , "open list:MEDIA DRIVERS FOR RENESAS - FCP" List-Id: devicetree@vger.kernel.org On Mon, Aug 21, 2017 at 7:19 PM, Niklas Söderlund wrote: > Using CONFIG_OF_DYNAMIC=y uncovered an imbalance in the usecount of the > node being passed to of_fwnode_graph_get_port_parent(). Preserve the > usecount by using of_get_parent() instead of of_get_next_parent() which > don't decrement the usecount of the node passed to it. > > Fixes: 3b27d00e7b6d7c88 ("device property: Move fwnode graph ops to firmware specific locations") > Signed-off-by: Niklas Söderlund > Acked-by: Sakari Ailus > --- > drivers/of/property.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Isn't this already fixed with this fix: commit c0a480d1acf7dc184f9f3e7cf724483b0d28dc2e Author: Tony Lindgren Date: Fri Jul 28 01:23:15 2017 -0700 device property: Fix usecount for of_graph_get_port_parent()