ChangeSet 1.2240, 2005/04/04 08:06:56-07:00, [EMAIL PROTECTED]

        [PATCH] cpuset.c __user annotations
        
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
        Signed-off-by: Al Viro <[EMAIL PROTECTED]>



 cpuset.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


diff -Nru a/kernel/cpuset.c b/kernel/cpuset.c
--- a/kernel/cpuset.c   2005-04-04 09:09:21 -07:00
+++ b/kernel/cpuset.c   2005-04-04 09:09:21 -07:00
@@ -345,7 +345,7 @@
        int (*open) (struct inode *inode, struct file *file);
        ssize_t (*read) (struct file *file, char __user *buf, size_t nbytes,
                                                        loff_t *ppos);
-       int (*write) (struct file *file, const char *buf, size_t nbytes,
+       int (*write) (struct file *file, const char __user *buf, size_t nbytes,
                                                        loff_t *ppos);
        int (*release) (struct inode *inode, struct file *file);
 };
@@ -740,7 +740,7 @@
        FILE_TASKLIST,
 } cpuset_filetype_t;
 
-static ssize_t cpuset_common_file_write(struct file *file, const char *userbuf,
+static ssize_t cpuset_common_file_write(struct file *file, const char __user 
*userbuf,
                                        size_t nbytes, loff_t *unused_ppos)
 {
        struct cpuset *cs = __d_cs(file->f_dentry->d_parent);
@@ -803,7 +803,7 @@
        return retval;
 }
 
-static ssize_t cpuset_file_write(struct file *file, const char *buf,
+static ssize_t cpuset_file_write(struct file *file, const char __user *buf,
                                                size_t nbytes, loff_t *ppos)
 {
        ssize_t retval = 0;
@@ -903,7 +903,7 @@
        return retval;
 }
 
-static ssize_t cpuset_file_read(struct file *file, char *buf, size_t nbytes,
+static ssize_t cpuset_file_read(struct file *file, char __user *buf, size_t 
nbytes,
                                                                loff_t *ppos)
 {
        ssize_t retval = 0;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to