diff options
| -rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_plane.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_plane.c b/drivers/gpu/drm/rcar-du/rcar_du_plane.c index 35a2f04ab799..210e5c3fd982 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_plane.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_plane.c | |||
| @@ -316,6 +316,9 @@ rcar_du_plane_atomic_duplicate_state(struct drm_plane *plane) | |||
| 316 | static void rcar_du_plane_atomic_destroy_state(struct drm_plane *plane, | 316 | static void rcar_du_plane_atomic_destroy_state(struct drm_plane *plane, |
| 317 | struct drm_plane_state *state) | 317 | struct drm_plane_state *state) |
| 318 | { | 318 | { |
| 319 | if (state->fb) | ||
| 320 | drm_framebuffer_unreference(state->fb); | ||
| 321 | |||
| 319 | kfree(to_rcar_du_plane_state(state)); | 322 | kfree(to_rcar_du_plane_state(state)); |
| 320 | } | 323 | } |
| 321 | 324 | ||
