[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <13cb52b9-2e41-2b47-96cd-37748de86531@web.de>
Date: Wed, 17 Apr 2019 15:33:53 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Wen Yang <wen.yang99@....com.cn>, iommu@...ts.linux-foundation.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org,
Jörg Rödel <joro@...tes.org>,
Matthias Brugger <mbrugger@...e.com>,
Yi Wang <wang.yi59@....com.cn>
Subject: Re: [PATCH] iommu/mediatek: fix leaked of_node references
> The call to of_parse_phandle returns a node pointer with refcount
> incremented thus it must be explicitly decremented after the last
> usage.
Can a splitting of this information into two sentences help?
> 581 static int mtk_iommu_probe(struct platform_device *pdev)
> 582 {
> ...
I suggest to reconsider such a commit description once more.
Would it be better to mention that another function call should be added
in two if branches so that the exception handling would be completed
(instead of copying source code where a software update should become
clear also from the provided diff hunk)?
Regards,
Markus
Powered by blists - more mailing lists