summaryrefslogtreecommitdiff
path: root/fs/filesystems.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2003-05-12 23:42:31 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2003-05-12 23:42:31 -0700
commit162132e0c996e74e75761894100d57e90db2d194 (patch)
treea5b20eb6fd9d880f7d2ea0401717f784f2abcce5 /fs/filesystems.c
parent567cf04271efd461477fce998d9094dd899dd08a (diff)
Add user pointer annotations to core filesystem routines.
Diffstat (limited to 'fs/filesystems.c')
-rw-r--r--fs/filesystems.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/filesystems.c b/fs/filesystems.c
index c4b467fb67dd..9593c8206a53 100644
--- a/fs/filesystems.c
+++ b/fs/filesystems.c
@@ -174,7 +174,7 @@ void __init fs_subsys_init(void)
register_fs_subsys(*p);
}
-static int fs_index(const char * __name)
+static int fs_index(const char __user * __name)
{
struct file_system_type * tmp;
char * name;
@@ -198,7 +198,7 @@ static int fs_index(const char * __name)
return err;
}
-static int fs_name(unsigned int index, char * buf)
+static int fs_name(unsigned int index, char __user * buf)
{
struct file_system_type * tmp;
int len, res;
@@ -239,11 +239,11 @@ asmlinkage long sys_sysfs(int option, unsigned long arg1, unsigned long arg2)
switch (option) {
case 1:
- retval = fs_index((const char *) arg1);
+ retval = fs_index((const char __user *) arg1);
break;
case 2:
- retval = fs_name(arg1, (char *) arg2);
+ retval = fs_name(arg1, (char __user *) arg2);
break;
case 3: