Skip to content

Commit 7b3f0c4

Browse files
author
Al Viro
committed
i915:get_engines(): get rid of pointless access_ok()
Signed-off-by: Al Viro <[email protected]>
1 parent 598caf1 commit 7b3f0c4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/gpu/drm/i915/gem/i915_gem_context.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,11 +1924,6 @@ get_engines(struct i915_gem_context *ctx,
19241924
}
19251925

19261926
user = u64_to_user_ptr(args->value);
1927-
if (!access_ok(user, size)) {
1928-
err = -EFAULT;
1929-
goto err_free;
1930-
}
1931-
19321927
if (put_user(0, &user->extensions)) {
19331928
err = -EFAULT;
19341929
goto err_free;

0 commit comments

Comments
 (0)