diff options
author | Ingo Molnar <mingo@kernel.org> | 2018-12-17 19:46:26 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-12-17 19:46:26 +0300 |
commit | 76aea1eeb98d2d75d9297fda777efeffe3657aeb (patch) | |
tree | 18fdf94ec846b553f1e60438279a3b449897189b /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 43b9e4febc66b98d83cc1560196d56ac7fef3c32 (diff) | |
parent | 7566ec393f4161572ba6f11ad5171fd5d59b0fbd (diff) | |
download | linux-76aea1eeb98d2d75d9297fda777efeffe3657aeb.tar.xz |
Merge tag 'v4.20-rc7' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 663043c8f0f5..0acc8dee2cb8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -124,14 +124,14 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, union drm_amdgpu_cs goto free_chunk; } + mutex_lock(&p->ctx->lock); + /* skip guilty context job */ if (atomic_read(&p->ctx->guilty) == 1) { ret = -ECANCELED; goto free_chunk; } - mutex_lock(&p->ctx->lock); - /* get chunks */ chunk_array_user = u64_to_user_ptr(cs->in.chunks); if (copy_from_user(chunk_array, chunk_array_user, |