diff options
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat.c b/fs/compat.c index f0b391c50552..6490d2134ff3 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -626,7 +626,7 @@ ssize_t compat_rw_copy_check_uvector(int type, | |||
626 | tot_len += len; | 626 | tot_len += len; |
627 | if (tot_len < tmp) /* maths overflow on the compat_ssize_t */ | 627 | if (tot_len < tmp) /* maths overflow on the compat_ssize_t */ |
628 | goto out; | 628 | goto out; |
629 | if (!access_ok(vrfy_dir(type), buf, len)) { | 629 | if (!access_ok(vrfy_dir(type), compat_ptr(buf), len)) { |
630 | ret = -EFAULT; | 630 | ret = -EFAULT; |
631 | goto out; | 631 | goto out; |
632 | } | 632 | } |