[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f0b0a007-599b-428b-bea6-5eafc567d757@web.de>
Date: Sat, 27 Sep 2025 14:43:17 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: make24@...as.ac.cn, linux-tegra@...r.kernel.org,
dri-devel@...ts.freedesktop.org, David Airlie <airlied@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Mikko Perttunen <mperttunen@...dia.com>, Simona Vetter <simona@...ll.ch>,
Thierry Reding <thierry.reding@...il.com>
Cc: stable@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] drm/tegra: dc: fix reference leak in tegra_dc_couple()
> driver_find_device() calls get_device() to increment the reference
> count once a matching device is found, but there is no put_device() to
> balance the reference count. To avoid reference count leakage, add
> put_device() to decrease the reference count.
How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17-rc7/source/include/linux/device.h#L1180
Regards,
Markus
Powered by blists - more mailing lists