On Wed, Nov 06, 2024 at 11:48:27AM +0100, Luca Ceresoli wrote: > Calling drm_connector_cleanup() should only be done via the free_cb => > .destroy path, which cleans up the struct drm_connector only when the > refcount drops to zero. > > A cleanup done with a refcount higher than 0 can result from buggy code, > e.g. by doing cleanup directly in the drivers teardown code. Serious > trouble can happen if this happens, so warn about it. > > Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx> > --- > drivers/gpu/drm/drm_connector.c | 6 ++++++ > 1 file changed, 6 insertions(+) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> -- With best wishes Dmitry