Merge a12cf8b32c ("fs/ioctl: remove unnecessary __user annotation") into android-mainline

Steps on the way to 5.17-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I92bb3dd9124e2d854d8d265cc464a101b2918aca
This commit is contained in:
Greg Kroah-Hartman
2022-02-09 14:41:05 +01:00

View File

@@ -430,7 +430,7 @@ static int ioctl_file_dedupe_range(struct file *file,
goto out;
}
size = offsetof(struct file_dedupe_range __user, info[count]);
size = offsetof(struct file_dedupe_range, info[count]);
if (size > PAGE_SIZE) {
ret = -ENOMEM;
goto out;