Commit 7b3f0c4c authored by Al Viro's avatar Al Viro
Browse files

i915:get_engines(): get rid of pointless access_ok()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 598caf1a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;