[Intel-gfx] [RFC v2 1/4] drm: Add support to find drm_panel by name

Daniel Vetter daniel at ffwll.ch
Mon Jan 12 15:08:11 PST 2015


On Fri, Jan 9, 2015 at 1:50 PM, Jani Nikula <jani.nikula at intel.com> wrote:
> I have a slightly uneasy feeling about handing out drm_panel pointers
> (both from here and of_drm_find_panel) without refcounting. If the panel
> driver gets removed, whoever called the find functions will have a
> dangling pointer. I supposed this will be discussed on drm-devel.

There's been some discussion already about exactly this problem (but
with drm bridges) with Thierry and some other people. Cc'ed them all
hopefully. Especially when the panel/bridge is a separate driver
there's imo indeed an issue.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


More information about the Intel-gfx mailing list