Skip to content

Commit 598caf1

Browse files
author
Al Viro
committed
i915: alloc_oa_regs(): get rid of pointless access_ok()
Signed-off-by: Al Viro <[email protected]>
1 parent fd7cd8d commit 598caf1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/i915/i915_perf.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3949,9 +3949,6 @@ static struct i915_oa_reg *alloc_oa_regs(struct i915_perf *perf,
39493949
if (!n_regs)
39503950
return NULL;
39513951

3952-
if (!access_ok(regs, n_regs * sizeof(u32) * 2))
3953-
return ERR_PTR(-EFAULT);
3954-
39553952
/* No is_valid function means we're not allowing any register to be programmed. */
39563953
GEM_BUG_ON(!is_valid);
39573954
if (!is_valid)

0 commit comments

Comments
 (0)