Merge branch 'uaccess.i915' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull i915 uaccess updates from Al Viro: "Low-hanging fruit in i915; there are several trickier followups, but that'll wait for the next cycle" * 'uaccess.i915' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: i915:get_engines(): get rid of pointless access_ok() i915: alloc_oa_regs(): get rid of pointless access_ok() i915 compat ioctl(): just use drm_ioctl_kernel() i915: switch copy_perf_config_registers_or_number() to unsafe_put_user() i915: switch query_{topology,engine}_info() to copy_to_user()
This commit is contained in:
@@ -3896,9 +3896,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)
|
||||
|
Reference in New Issue
Block a user