/drivers/video/drm/drm_crtc.c |
---|
2537,8 → 2537,9 |
drm_for_each_crtc(tmp, crtc->dev) { |
if (tmp->primary->fb) |
drm_framebuffer_reference(tmp->primary->fb); |
// if (tmp->old_fb) |
// drm_framebuffer_unreference(tmp->old_fb); |
if (tmp->primary->old_fb) |
drm_framebuffer_unreference(tmp->primary->old_fb); |
tmp->primary->old_fb = NULL; |
} |
return ret; |