X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fcompat.c;h=6490d2134ff3e73656b29b6ad5473e339870ae8d;hb=ed36dbde5a401ac21f7af9d9bdc45aaff586ab7c;hp=f0b391c50552dc986f93afe1e4c56ce3b777a600;hpb=003386fff3e02e51cea882e60f7d28290113964c;p=pandora-kernel.git 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, tot_len += len; if (tot_len < tmp) /* maths overflow on the compat_ssize_t */ goto out; - if (!access_ok(vrfy_dir(type), buf, len)) { + if (!access_ok(vrfy_dir(type), compat_ptr(buf), len)) { ret = -EFAULT; goto out; }