Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
40e6815b
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
40e6815b
编写于
5月 03, 2016
作者:
R
Rob Clark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/msm: fix leak in failed submit path
Signed-off-by:
N
Rob Clark
<
robdclark@gmail.com
>
上级
6860b56c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
5 deletion
+13
-5
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_drv.h
+1
-0
drivers/gpu/drm/msm/msm_gem_submit.c
drivers/gpu/drm/msm/msm_gem_submit.c
+11
-2
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.c
+1
-3
未找到文件。
drivers/gpu/drm/msm/msm_drv.h
浏览文件 @
40e6815b
...
...
@@ -161,6 +161,7 @@ int msm_atomic_commit(struct drm_device *dev,
int
msm_register_mmu
(
struct
drm_device
*
dev
,
struct
msm_mmu
*
mmu
);
void
msm_gem_submit_free
(
struct
msm_gem_submit
*
submit
);
int
msm_ioctl_gem_submit
(
struct
drm_device
*
dev
,
void
*
data
,
struct
drm_file
*
file
);
...
...
drivers/gpu/drm/msm/msm_gem_submit.c
浏览文件 @
40e6815b
...
...
@@ -56,6 +56,13 @@ static struct msm_gem_submit *submit_create(struct drm_device *dev,
return
submit
;
}
void
msm_gem_submit_free
(
struct
msm_gem_submit
*
submit
)
{
fence_put
(
submit
->
fence
);
list_del
(
&
submit
->
node
);
kfree
(
submit
);
}
static
int
submit_lookup_objects
(
struct
msm_gem_submit
*
submit
,
struct
drm_msm_gem_submit
*
args
,
struct
drm_file
*
file
)
{
...
...
@@ -324,7 +331,7 @@ static int submit_reloc(struct msm_gem_submit *submit, struct msm_gem_object *ob
return
0
;
}
static
void
submit_cleanup
(
struct
msm_gem_submit
*
submit
,
bool
fail
)
static
void
submit_cleanup
(
struct
msm_gem_submit
*
submit
)
{
unsigned
i
;
...
...
@@ -448,7 +455,9 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
args
->
fence
=
submit
->
fence
->
seqno
;
out:
submit_cleanup
(
submit
,
!!
ret
);
submit_cleanup
(
submit
);
if
(
ret
)
msm_gem_submit_free
(
submit
);
mutex_unlock
(
&
dev
->
struct_mutex
);
return
ret
;
}
drivers/gpu/drm/msm/msm_gpu.c
浏览文件 @
40e6815b
...
...
@@ -446,9 +446,7 @@ static void retire_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
drm_gem_object_unreference
(
&
msm_obj
->
base
);
}
fence_put
(
submit
->
fence
);
list_del
(
&
submit
->
node
);
kfree
(
submit
);
msm_gem_submit_free
(
submit
);
}
static
void
retire_submits
(
struct
msm_gpu
*
gpu
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录