X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fcompat.c;h=c6fda9aeb86471cd8e9a7edafea144fe48991b35;hb=93b9e9a2d91b8a6c93f14e98382694f83de9f02e;hp=f0b391c50552dc986f93afe1e4c56ce3b777a600;hpb=1d61e73ab4c7470833241af888939a7aab2b0354;p=mv-sheeva.git diff --git a/fs/compat.c b/fs/compat.c index f0b391c5055..c6fda9aeb86 100644 --- a/fs/compat.c +++ b/fs/compat.c @@ -8,7 +8,7 @@ * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com) * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs - * Copyright (C) 2003 Pavel Machek (pavel@suse.cz) + * Copyright (C) 2003 Pavel Machek (pavel@ucw.cz) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -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; }