diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 15d4a28d73bb..baa90df90aea 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
| @@ -1079,6 +1079,9 @@ static int amdgpu_cs_process_syncobj_out_dep(struct amdgpu_cs_parser *p, | |||
| 1079 | GFP_KERNEL); | 1079 | GFP_KERNEL); |
| 1080 | p->num_post_dep_syncobjs = 0; | 1080 | p->num_post_dep_syncobjs = 0; |
| 1081 | 1081 | ||
| 1082 | if (!p->post_dep_syncobjs) | ||
| 1083 | return -ENOMEM; | ||
| 1084 | |||
| 1082 | for (i = 0; i < num_deps; ++i) { | 1085 | for (i = 0; i < num_deps; ++i) { |
| 1083 | p->post_dep_syncobjs[i] = drm_syncobj_find(p->filp, deps[i].handle); | 1086 | p->post_dep_syncobjs[i] = drm_syncobj_find(p->filp, deps[i].handle); |
| 1084 | if (!p->post_dep_syncobjs[i]) | 1087 | if (!p->post_dep_syncobjs[i]) |
