mirror of
https://github.com/torvalds/linux.git
synced 2024-09-21 07:23:06 +00:00
fat_dir_ioctl(): hadn't needed that access_ok() for more than a decade...
address is passed only to put_user() and copy_to_user() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
37d59a5148
commit
f06d3a7e6e
|
@ -804,8 +804,6 @@ static long fat_dir_ioctl(struct file *filp, unsigned int cmd,
|
||||||
return fat_generic_ioctl(filp, cmd, arg);
|
return fat_generic_ioctl(filp, cmd, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!access_ok(d1, sizeof(struct __fat_dirent[2])))
|
|
||||||
return -EFAULT;
|
|
||||||
/*
|
/*
|
||||||
* Yes, we don't need this put_user() absolutely. However old
|
* Yes, we don't need this put_user() absolutely. However old
|
||||||
* code didn't return the right value. So, app use this value,
|
* code didn't return the right value. So, app use this value,
|
||||||
|
@ -844,8 +842,6 @@ static long fat_compat_dir_ioctl(struct file *filp, unsigned cmd,
|
||||||
return fat_generic_ioctl(filp, cmd, (unsigned long)arg);
|
return fat_generic_ioctl(filp, cmd, (unsigned long)arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!access_ok(d1, sizeof(struct compat_dirent[2])))
|
|
||||||
return -EFAULT;
|
|
||||||
/*
|
/*
|
||||||
* Yes, we don't need this put_user() absolutely. However old
|
* Yes, we don't need this put_user() absolutely. However old
|
||||||
* code didn't return the right value. So, app use this value,
|
* code didn't return the right value. So, app use this value,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user