[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191230014047.15385-1-yukuai3@huawei.com>
Date: Mon, 30 Dec 2019 09:40:47 +0800
From: yu kuai <yukuai3@...wei.com>
To: <eric@...olt.net>, <airlied@...ux.ie>, <daniel.vetter@...ll.ch>,
<navid.emamdoost@...il.com>
CC: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
<yukuai3@...wei.com>, <zhengbin13@...wei.com>,
<yi.zhang@...wei.com>
Subject: [PATCH V2] drm/v3d: remove duplicated kfree in v3d_submit_cl_ioctl
kfree() was called for the same variable twice within an if branch.
Fix it by deleting a duplicate function call.
Fixes: 29cd13cfd762 ("drm/v3d: Fix memory leak in v3d_submit_cl_ioctl")
Signed-off-by: yu kuai <yukuai3@...wei.com>
---
drivers/gpu/drm/v3d/v3d_gem.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/v3d_gem.c
index 549dde83408b..37515e47b47e 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;
--
2.17.2
Powered by blists - more mailing lists