OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
598caf1
)
i915:get_engines(): get rid of pointless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 25 Apr 2020 17:13:48 +0000
(13:13 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 2 May 2020 00:35:42 +0000
(20:35 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/drm/i915/gem/i915_gem_context.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gem/i915_gem_context.c
b/drivers/gpu/drm/i915/gem/i915_gem_context.c
index
68326ad
..
55cb6db
100644
(file)
--- 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;