diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-11-15 13:58:51 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-11-15 19:56:45 +0300 |
commit | 5a43911fd256f1c9748f3f82aee1c3a3adad2719 (patch) | |
tree | 3825ed6f831559715d83aa0632de02775a983bb0 /Documentation/input/uinput.rst | |
parent | adf59dd2408c4536d490bee649784f0465562444 (diff) | |
download | linux-5a43911fd256f1c9748f3f82aee1c3a3adad2719.tar.xz |
drm/vc4: Fix NULL pointer dereference in the async update path
vc4_plane_atomic_async_update() calls vc4_plane_atomic_check()
which in turn calls vc4_plane_setup_clipping_and_scaling(), and since
commit 58a6a36fe8e0 ("drm/vc4: Use
drm_atomic_helper_check_plane_state() to simplify the logic"), this
function accesses plane_state->state which will be NULL when called
from the async update path because we're passing the current plane
state, and plane_state->state has been assigned to NULL in
drm_atomic_helper_swap_state().
Pass the new state instead of the current one (the new state has
->state set to a non-NULL value).
Fixes: 58a6a36fe8e0 ("drm/vc4: Use drm_atomic_helper_check_plane_state() to simplify the logic")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181115105852.9844-1-boris.brezillon@bootlin.com
Diffstat (limited to 'Documentation/input/uinput.rst')
0 files changed, 0 insertions, 0 deletions