aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_atomic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_atomic.c')
-rw-r--r--drivers/gpu/drm/drm_atomic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index c5cb56db99f6..38cf374e7552 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -737,7 +737,7 @@ int drm_atomic_plane_set_property(struct drm_plane *plane,
737 struct drm_framebuffer *fb = drm_framebuffer_lookup(dev, val); 737 struct drm_framebuffer *fb = drm_framebuffer_lookup(dev, val);
738 drm_atomic_set_fb_for_plane(state, fb); 738 drm_atomic_set_fb_for_plane(state, fb);
739 if (fb) 739 if (fb)
740 drm_framebuffer_unreference(fb); 740 drm_framebuffer_put(fb);
741 } else if (property == config->prop_in_fence_fd) { 741 } else if (property == config->prop_in_fence_fd) {
742 if (state->fence) 742 if (state->fence)
743 return -EINVAL; 743 return -EINVAL;
@@ -1865,12 +1865,12 @@ void drm_atomic_clean_old_fb(struct drm_device *dev,
1865 if (ret == 0) { 1865 if (ret == 0) {
1866 struct drm_framebuffer *new_fb = plane->state->fb; 1866 struct drm_framebuffer *new_fb = plane->state->fb;
1867 if (new_fb) 1867 if (new_fb)
1868 drm_framebuffer_reference(new_fb); 1868 drm_framebuffer_get(new_fb);
1869 plane->fb = new_fb; 1869 plane->fb = new_fb;
1870 plane->crtc = plane->state->crtc; 1870 plane->crtc = plane->state->crtc;
1871 1871
1872 if (plane->old_fb) 1872 if (plane->old_fb)
1873 drm_framebuffer_unreference(plane->old_fb); 1873 drm_framebuffer_put(plane->old_fb);
1874 } 1874 }
1875 plane->old_fb = NULL; 1875 plane->old_fb = NULL;
1876 } 1876 }