Skip to content
Snippets Groups Projects
Verified Commit ff3881cc authored by Dan Carpenter's avatar Dan Carpenter Committed by Maxime Ripard
Browse files

drm: writeback: Fix use after free in drm_writeback_connector_cleanup()


The drm_writeback_cleanup_job() function frees "pos" so call
list_del(&pos->list_entry) first to avoid a use after free.

Fixes: 1914ba2b ("drm: writeback: Create drmm variants for drm_writeback_connector initialization")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/78abd541-71e9-4b3b-a05d-2c7caf8d5b2f@stanley.mountain


Signed-off-by: Maxime Ripard's avatarMaxime Ripard <mripard@kernel.org>
parent e5f5f7cc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment