mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
i915:get_engines(): get rid of pointless access_ok()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
598caf1a40
commit
7b3f0c4c56
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user