Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753077AbcCKNJN (ORCPT ); Fri, 11 Mar 2016 08:09:13 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:26829 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbcCKNJH (ORCPT ); Fri, 11 Mar 2016 08:09:07 -0500 X-AuditID: cbfec7f5-f79b16d000005389-03-56e2c371f005 Subject: Re: [PATCH 0/2] [media] exynos4-is: Trivial fixes for DT port/endpoint parse logic To: Javier Martinez Canillas References: <1457122813-12791-1-git-send-email-javier@osg.samsung.com> <56DD48C1.8010004@samsung.com> <56DD9086.7070903@osg.samsung.com> Cc: Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Kukjin Kim , Mauro Carvalho Chehab , linux-samsung-soc@vger.kernel.org, Kyungmin Park , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org From: Sylwester Nawrocki Message-id: <56E2C36C.6030709@samsung.com> Date: Fri, 11 Mar 2016 14:09:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-version: 1.0 In-reply-to: <56DD9086.7070903@osg.samsung.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsVy+t/xK7qFhx+FGXw5xGLx5u0aJovXLwwt +h+/ZrY42/SG3WLT42usFpd3zWGz6NmwldVixvl9TBarn1U4cHpsWtXJ5rF5Sb3Hlv677B59 W1YxenzeJBfAGsVlk5Kak1mWWqRvl8CV8WbmY5aC9ywV62ZuYWxg/MDcxcjJISFgIrF902MW CFtM4sK99WxdjFwcQgJLGSXefprLDOE8Z5SY9fsIUxcjB4ewQKzEpJtFIA0iAqYSv9a+YIWo ucgocfHCa7BuZoEdTBKfPh5kA6liEzCU6D3axwhi8wpoSXyevxBsHYuAqsSv60/BbFGBCInD nV3sEDWCEj8m3wOLcwroS3ybcpoVZDGzgLrElCm5IGFmAXmJzWveMk9gFJiFpGMWQtUsJFUL GJlXMYqmliYXFCel5xrpFSfmFpfmpesl5+duYoSE/NcdjEuPWR1iFOBgVOLh/XDtYZgQa2JZ cWXuIUYJDmYlEd7ig4/ChHhTEiurUovy44tKc1KLDzFKc7AoifPO3PU+REggPbEkNTs1tSC1 CCbLxMEp1cB4/vqmm7a6AlI39p1NO7pab2lm0aUvV/pf7mxepHVzDc88sdeqQZv4Z6woiwgt PuB0UqK0yPNivMk5u18Cu20Y7y4v6r+78n0G90vGfbU7zL1CVC7XHii+Zn+CST5bcF7vT4X8 xft9rTJFV8sc1y5c+IZNN8I3fjnvPOWj3V7xfH+MVn+cOGWqEktxRqKhFnNRcSIAdmvljXUC AAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 608 Lines: 15 On 03/07/2016 03:30 PM, Javier Martinez Canillas wrote: > Thanks, I just noticed another similar issue in the driver now and is > that fimc_is_parse_sensor_config() uses the same struct device_node * > for looking up the I2C sensor, port and endpoint and thus not doing a > of_node_put() for all the nodes on the error path. > > I think the right fix is to have a separate struct device_node * for > each so their reference counter can be incremented and decremented. Yes, the node reference count is indeed not handled very well there, feel free to submit a patch to fix that bug. -- Regards, Sylwester