summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-04-23 14:32:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-01 20:35:35 -0400
commit598caf1a4032bd52040a57739342a0a97eace757 (patch)
treea69f4f76251a5a091425467af977a29471e58fb1 /drivers/gpu/drm
parentfd7cd8da232d892f2b7dc4766f8a05a81043ee5e (diff)
downloadlinux-598caf1a4032bd52040a57739342a0a97eace757.tar.gz
linux-598caf1a4032bd52040a57739342a0a97eace757.tar.bz2
linux-598caf1a4032bd52040a57739342a0a97eace757.zip
i915: alloc_oa_regs(): get rid of pointless access_ok()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_perf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 551be589d6f4..a52461016935 100644
--- 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)