Commit 7b3f0c4c authored by Al Viro's avatar Al Viro

i915:get_engines(): get rid of pointless access_ok()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 598caf1a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment