diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-10-26 12:49:05 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2020-10-26 13:43:31 +0300 |
commit | 897dbea6b716c0f2c5bcd4ba1eb4d809caba290c (patch) | |
tree | 081ad04ca4000d98fd598697b8319d889916d32a /drivers/gpu/drm/v3d | |
parent | e3190b5e9462067714d267c40d8c8c1d0463dda3 (diff) | |
download | linux-897dbea6b716c0f2c5bcd4ba1eb4d809caba290c.tar.xz |
drm/v3d: Fix double free in v3d_submit_cl_ioctl()
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
Diffstat (limited to 'drivers/gpu/drm/v3d')
-rw-r--r-- | drivers/gpu/drm/v3d/v3d_gem.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/v3d_gem.c index 915f8bfdb58c..182c586525eb 100644 --- a/drivers/gpu/drm/v3d/v3d_gem.c +++ b/drivers/gpu/drm/v3d/v3d_gem.c @@ -568,7 +568,6 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data, ret = v3d_job_init(v3d, file_priv, &bin->base, v3d_job_free, args->in_sync_bcl); if (ret) { - kfree(bin); v3d_job_put(&render->base); kfree(bin); return ret; |