summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-04-25 20:13:48 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-02 03:35:42 +0300
commit7b3f0c4c56b08a86f890cad3599242c78c683aa9 (patch)
tree26e7b72602eddf204d0cf99f97dbdbee33c9af6a /drivers/gpu/drm/i915
parent598caf1a4032bd52040a57739342a0a97eace757 (diff)
downloadlinux-7b3f0c4c56b08a86f890cad3599242c78c683aa9.tar.xz
i915:get_engines(): get rid of pointless access_ok()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/gem/i915_gem_context.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context.c b/drivers/gpu/drm/i915/gem/i915_gem_context.c
index 68326ad3b2e0..55cb6dbfe61f 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_context.c
@@ -1924,11 +1924,6 @@ get_engines(struct i915_gem_context *ctx,
}
user = u64_to_user_ptr(args->value);
- if (!access_ok(user, size)) {
- err = -EFAULT;
- goto err_free;
- }
-
if (put_user(0, &user->extensions)) {
err = -EFAULT;
goto err_free;