[PATCH 09/15] drm/modes: move reference taking into object lookup.

2016-04-21 Thread Daniel Vetter
On Fri, Apr 15, 2016 at 03:10:40PM +1000, Dave Airlie wrote: > From: Dave Airlie > > When we lookup an ref counted object we now take a proper reference > using kref_get_unless_zero. > > Framebuffer lookup no longer needs do this itself. > > Convert rmfb to using framebuffer lookup and deal wit

[PATCH 09/15] drm/modes: move reference taking into object lookup.

2016-04-15 Thread Dave Airlie
From: Dave Airlie When we lookup an ref counted object we now take a proper reference using kref_get_unless_zero. Framebuffer lookup no longer needs do this itself. Convert rmfb to using framebuffer lookup and deal with the fact it now gets an extra reference that we have to cleanup. This shoul