diff options
author | Dave Airlie <airlied@redhat.com> | 2019-01-04 14:09:12 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-01-04 14:09:15 +1000 |
commit | 9ddf32a8df9e342371aaf9233d59739a356231e6 (patch) | |
tree | bb1673a277628d7281c47dfbfc0418ebb232c905 /drivers/gpu/drm/drm_atomic_state_helper.c | |
parent | 74136a3d47f51ae72ee8b9ebc1ec2a29bcf30676 (diff) | |
parent | c75ff001f4fe21a8c9f15aad799a8949aea109f7 (diff) | |
download | linux-9ddf32a8df9e342371aaf9233d59739a356231e6.tar.bz2 |
Merge tag 'drm-misc-next-fixes-2019-01-02' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
Fixes for v4.21:
- Fix null pointer dereference on null state pointer.
- Fix leaking damage clip when destroying plane state.
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/46c4dbcd-dc23-7b46-fda9-16fe33e6ceef@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/drm_atomic_state_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_atomic_state_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_atomic_state_helper.c b/drivers/gpu/drm/drm_atomic_state_helper.c index 60bd7d708e35..4985384e51f6 100644 --- a/drivers/gpu/drm/drm_atomic_state_helper.c +++ b/drivers/gpu/drm/drm_atomic_state_helper.c @@ -241,6 +241,7 @@ void __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane, state->fence = NULL; state->commit = NULL; + state->fb_damage_clips = NULL; } EXPORT_SYMBOL(__drm_atomic_helper_plane_duplicate_state); @@ -285,6 +286,8 @@ void __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state) if (state->commit) drm_crtc_commit_put(state->commit); + + drm_property_blob_put(state->fb_damage_clips); } EXPORT_SYMBOL(__drm_atomic_helper_plane_destroy_state); |