]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/v3d: Fix double free in v3d_submit_cl_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Oct 2020 09:49:05 +0000 (12:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:39:04 +0000 (12:39 +0100)
commit9070c2bc4896e2a3a3b45181e72b412f780e13c0
treeaa1e38260434bd0bade1c0b9d3ced110dc609f1c
parent2d55c598c7f73c40e433b3d0374934d511547a97
drm/v3d: Fix double free in v3d_submit_cl_ioctl()

[ Upstream commit 897dbea6b716c0f2c5bcd4ba1eb4d809caba290c ]

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>
drivers/gpu/drm/v3d/v3d_gem.c