Re: [PATCH] generic compat_sys_ustat

From: Eric Sandeen
Date: Mon Nov 24 2008 - 15:48:00 EST


Christoph Hellwig wrote:

...

> Index: linux-2.6/fs/compat.c
> ===================================================================
> --- linux-2.6.orig/fs/compat.c 2008-11-20 20:09:52.000000000 +0100
> +++ linux-2.6/fs/compat.c 2008-11-20 20:16:05.000000000 +0100
> @@ -378,6 +378,24 @@ out:
> return error;
> }
>
> +asmlinkage long compat_sys_ustat(unsigned dev, struct compat_ustat __user *u32)
> +{
> + struct ustat *u = compat_alloc_user_space(sizeof(*u));

Also, Pete Zaitcev pointed out to me:

>> Isn't this supposed to be:
>> struct ustat __user *u = compat_alloc_user_space(sizeof(*u));

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/