drm/vmwgfx: add proper framebuffer refcounting
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Dec 2012 15:28:34 +0000 (16:28 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 21:17:11 +0000 (22:17 +0100)
commit2fd5eabab02d9cdade04397eae0bfd49f452cdba
tree4100bb2ef31de7d4aa730d9e56c6660e129dc099
parent623f9783027ef0a948205f17792c9e1fcedb61c6
drm/vmwgfx: add proper framebuffer refcounting

Afact vmwgfx already has all the right refcounting implemented on the
backing storage, and we only need to ensure that the drm fb doesn't
disappear untimely. So holding onto the fb reference from _lookup
until vmw_kms_present has completed should be enough.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c