drm/msm: Fix potential invalid ptr free
authorRob Clark <robdclark@chromium.org>
Wed, 15 Feb 2023 23:50:48 +0000 (15:50 -0800)
committerRob Clark <robdclark@chromium.org>
Wed, 22 Feb 2023 19:22:03 +0000 (11:22 -0800)
commit8a86f213f4426f19511a16d886871805b35c3acf
tree83444fead9aefe43142323e96a07cff5cf7ccc5a
parent92dd0575729a423aa5524d89055e34295152a2dd
drm/msm: Fix potential invalid ptr free

The error path cleanup expects that chain and syncobj are either NULL or
valid pointers.  But post_deps was not allocated with __GFP_ZERO.

Fixes: ab723b7a992a ("drm/msm: Add syncobj support.")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Patchwork: https://patchwork.freedesktop.org/patch/523051/
Link: https://lore.kernel.org/r/20230215235048.1166484-1-robdclark@gmail.com
drivers/gpu/drm/msm/msm_gem_submit.c