On Fri, 26 Sep 2025 16:59:40 +0200, Luca Ceresoli wrote: > drm_bridge_connector_init() takes eight pointers to various bridges, some > of which can be identical, and stores them in pointers inside struct > drm_bridge_connector. Get a reference to each of the taken bridges and put > it on cleanup. > > This is tricky because the pointers are currently stored directly in the > drm_bridge_connector in the loop, but there is no nice and clean way to put > those pointers on error return paths. To overcome this, store all pointers > in temporary local variables with a cleanup action, and only on success > copy them into struct drm_bridge_connector (getting another ref while > copying). > > [...]
Applied, thanks! [1/1] drm/display: bridge_connector: get/put the stored bridges commit: 2be300f9a0b6f6b0ae2a90be97e558ec0535be54 Best regards, -- Luca Ceresoli <luca.ceres...@bootlin.com>