]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/atomic: Clean private obj old_state/new_state in drm_atomic_state_default_clear()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 May 2018 18:32:47 +0000 (21:32 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:26:05 +0000 (12:26 +0200)
commit2e0fba4a10610e9ee350ae9a8613c7e10f840a1f
treece29012293249b027fbfd943d9528293f63a9085
parent048d7290d5699123156ae4abe816499cc2c70cae
drm/atomic: Clean private obj old_state/new_state in drm_atomic_state_default_clear()

BugLink: http://bugs.launchpad.net/bugs/1780499
commit b5cb2e5a1f64d882a155add7522247ab0523051e upstream.

Clear the old_state and new_state pointers for private objects
in drm_atomic_state_default_clear(). We don't actually have
functions to get the new/old state for private objects so
getting access to the potentially stale pointers requires a
bit more manual labour than for other object types. But let's
clear the pointers for private objects as well, if only to
avoid future surprises when someone decides to add the functions
to get at them.

v2: Split private objs to a separate patch (Daniel)

Cc: <stable@vger.kernel.org> # v4.14+
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Abhay Kumar <abhay.kumar@intel.com>
Fixes: a4370c777406 (drm/atomic: Make private objs proper objects)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180502183247.5746-1-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/drm_atomic.c