projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd7cd8d
)
i915: alloc_oa_regs(): get rid of pointless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 18:32:45 +0000
(14:32 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 2 May 2020 00:35:35 +0000
(20:35 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/drm/i915/i915_perf.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_perf.c
b/drivers/gpu/drm/i915/i915_perf.c
index 551be589d6f481449718e0d0d50991e957ccf4f5..a52461016935b96d5173095319eb7cf967249fb4 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_perf.c
+++ b/
drivers/gpu/drm/i915/i915_perf.c
@@
-3949,9
+3949,6
@@
static struct i915_oa_reg *alloc_oa_regs(struct i915_perf *perf,
if (!n_regs)
return NULL;
- if (!access_ok(regs, n_regs * sizeof(u32) * 2))
- return ERR_PTR(-EFAULT);
-
/* No is_valid function means we're not allowing any register to be programmed. */
GEM_BUG_ON(!is_valid);
if (!is_valid)