Danilo Krummrich
2025-Oct-06 20:38 UTC
[PATCH] drm/nouveau: Fix refcount leak in nouveau_connector_detect
On 10/6/25 6:48 PM, Shuhao Fu wrote:> A possible inconsistent refcount update has been identified in function > `nouveau_connector_detect`, which may cause a resource leak. > > After calling `pm_runtime_get_*(dev->dev)`, the usage counter of `dev->dev` > gets increased. In case function `nvif_outp_edid_get` returns negative, > function `nouveau_connector_detect` returns without decreasing the usage > counter of `dev->dev`, causing a refcount inconsistency. > > Signed-off-by: Shuhao Fu <sfual at cse.ust.hk> > Closes: https://gitlab.freedesktop.org/drm/nouveau/-/issues/450Can you please add a corresponding Fixes: tag and Cc: the stable list?