summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_plane.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drm_plane.c')
-rw-r--r--sys/dev/pci/drm/drm_plane.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_plane.c b/sys/dev/pci/drm/drm_plane.c
index 24e7998d173..01fbd3fb7b9 100644
--- a/sys/dev/pci/drm/drm_plane.c
+++ b/sys/dev/pci/drm/drm_plane.c
@@ -1387,6 +1387,7 @@ retry:
out:
if (fb)
drm_framebuffer_put(fb);
+ fb = NULL;
if (plane->old_fb)
drm_framebuffer_put(plane->old_fb);
plane->old_fb = NULL;