Skip to content

Commit 9070c2b

Browse files
Dan Carpentergregkh
authored andcommitted
drm/v3d: Fix double free in v3d_submit_cl_ioctl()
[ Upstream commit 897dbea ] Originally this error path used to leak "bin" but then we accidentally applied two separate commits to fix it and ended up with a double free. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20201026094905.GA1634423@mwanda Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2d55c59 commit 9070c2b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/gpu/drm/v3d/v3d_gem.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data,
568568
ret = v3d_job_init(v3d, file_priv, &bin->base,
569569
v3d_job_free, args->in_sync_bcl);
570570
if (ret) {
571-
kfree(bin);
572571
v3d_job_put(&render->base);
573572
kfree(bin);
574573
return ret;

0 commit comments

Comments
 (0)