* [PATCH v2 1/6] drm/tegra: Fix a device_node leak when the DRM panel is not found [not found] <20180503164009.14395-1-boris.brezillon@bootlin.com> @ 2018-05-03 16:40 ` Boris Brezillon 2018-05-04 9:50 ` Thierry Reding 0 siblings, 1 reply; 4+ messages in thread From: Boris Brezillon @ 2018-05-03 16:40 UTC (permalink / raw) To: David Airlie, Daniel Vetter, dri-devel, Thierry Reding, Eric Anholt, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree Cc: Boris Brezillon, stable of_node_put(panel) is not called when of_drm_find_panel(panel) returns NULL, thus leaking the reference we hold on panel. Fixes: 9be7d864cf07 ("drm/tegra: Implement panel support") Cc: <stable@vger.kernel.org> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> --- drivers/gpu/drm/tegra/output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c index ffe34bd0bb9d..676fd394836f 100644 --- a/drivers/gpu/drm/tegra/output.c +++ b/drivers/gpu/drm/tegra/output.c @@ -110,10 +110,9 @@ int tegra_output_probe(struct tegra_output *output) panel = of_parse_phandle(output->of_node, "nvidia,panel", 0); if (panel) { output->panel = of_drm_find_panel(panel); + of_node_put(panel); if (!output->panel) return -EPROBE_DEFER; - - of_node_put(panel); } output->edid = of_get_property(output->of_node, "nvidia,edid", &size); -- 2.14.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/6] drm/tegra: Fix a device_node leak when the DRM panel is not found 2018-05-03 16:40 ` [PATCH v2 1/6] drm/tegra: Fix a device_node leak when the DRM panel is not found Boris Brezillon @ 2018-05-04 9:50 ` Thierry Reding 2018-05-04 9:53 ` Thierry Reding 2018-05-04 9:54 ` Boris Brezillon 0 siblings, 2 replies; 4+ messages in thread From: Thierry Reding @ 2018-05-04 9:50 UTC (permalink / raw) To: Boris Brezillon Cc: David Airlie, Daniel Vetter, dri-devel, Eric Anholt, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree, stable [-- Attachment #1: Type: text/plain, Size: 733 bytes --] On Thu, May 03, 2018 at 06:40:04PM +0200, Boris Brezillon wrote: > of_node_put(panel) is not called when of_drm_find_panel(panel) returns > NULL, thus leaking the reference we hold on panel. > > Fixes: 9be7d864cf07 ("drm/tegra: Implement panel support") > Cc: <stable@vger.kernel.org> > Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> > --- > drivers/gpu/drm/tegra/output.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) I'm not sure this warrants a backport, it's a very minor reference leak so doesn't really have an impact on system stability or functionality. Since this patch is unrelated from the rest of the series, do you mind if I pick this up into the drm/tegra tree? Thierry [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/6] drm/tegra: Fix a device_node leak when the DRM panel is not found 2018-05-04 9:50 ` Thierry Reding @ 2018-05-04 9:53 ` Thierry Reding 2018-05-04 9:54 ` Boris Brezillon 1 sibling, 0 replies; 4+ messages in thread From: Thierry Reding @ 2018-05-04 9:53 UTC (permalink / raw) To: Boris Brezillon Cc: David Airlie, Daniel Vetter, dri-devel, Eric Anholt, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree, stable [-- Attachment #1: Type: text/plain, Size: 935 bytes --] On Fri, May 04, 2018 at 11:50:16AM +0200, Thierry Reding wrote: > On Thu, May 03, 2018 at 06:40:04PM +0200, Boris Brezillon wrote: > > of_node_put(panel) is not called when of_drm_find_panel(panel) returns > > NULL, thus leaking the reference we hold on panel. > > > > Fixes: 9be7d864cf07 ("drm/tegra: Implement panel support") > > Cc: <stable@vger.kernel.org> > > Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> > > --- > > drivers/gpu/drm/tegra/output.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > I'm not sure this warrants a backport, it's a very minor reference leak > so doesn't really have an impact on system stability or functionality. > > Since this patch is unrelated from the rest of the series, do you mind > if I pick this up into the drm/tegra tree? Oh, nevermind, I just noticed that patch 2 depends on this, so: Acked-by: Thierry Reding <treding@nvidia.com> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/6] drm/tegra: Fix a device_node leak when the DRM panel is not found 2018-05-04 9:50 ` Thierry Reding 2018-05-04 9:53 ` Thierry Reding @ 2018-05-04 9:54 ` Boris Brezillon 1 sibling, 0 replies; 4+ messages in thread From: Boris Brezillon @ 2018-05-04 9:54 UTC (permalink / raw) To: Thierry Reding Cc: David Airlie, Daniel Vetter, dri-devel, Eric Anholt, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree, stable On Fri, 4 May 2018 11:50:16 +0200 Thierry Reding <thierry.reding@gmail.com> wrote: > On Thu, May 03, 2018 at 06:40:04PM +0200, Boris Brezillon wrote: > > of_node_put(panel) is not called when of_drm_find_panel(panel) returns > > NULL, thus leaking the reference we hold on panel. > > > > Fixes: 9be7d864cf07 ("drm/tegra: Implement panel support") > > Cc: <stable@vger.kernel.org> > > Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> > > --- > > drivers/gpu/drm/tegra/output.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > I'm not sure this warrants a backport, it's a very minor reference leak > so doesn't really have an impact on system stability or functionality. > > Since this patch is unrelated from the rest of the series, do you mind > if I pick this up into the drm/tegra tree? Sure, and feel free to remove the Cc-stable and Fixes tag if you think they are not necessary. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-04 9:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180503164009.14395-1-boris.brezillon@bootlin.com>
2018-05-03 16:40 ` [PATCH v2 1/6] drm/tegra: Fix a device_node leak when the DRM panel is not found Boris Brezillon
2018-05-04 9:50 ` Thierry Reding
2018-05-04 9:53 ` Thierry Reding
2018-05-04 9:54 ` Boris Brezillon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox