drm/core: Do not call drm_framebuffer_remove internally during teardown.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 9 Sep 2015 11:46:21 +0000 (13:46 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Sep 2015 14:47:45 +0000 (16:47 +0200)
commitc099b55a6fa6f9ec2f26105c76df462d7c7c7d5b
treec5fa96627d3ddac751f9de02af9c8c28026f7bd1
parentfcc9021343212f6a4a52a085b3d383ab29a9ac0a
drm/core: Do not call drm_framebuffer_remove internally during teardown.

This may cause issues because encoders are already destroyed so removing
active primaries may use freed memory. Instead free the fb directly,
ignoring refcount.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c