Skip to content

Commit

Permalink
i915:get_engines(): get rid of pointless access_ok()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 2, 2020
1 parent 598caf1 commit 7b3f0c4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/gpu/drm/i915/gem/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b3f0c4

Please sign in to comment.