X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fvc_screen.c;h=c357ab7f9c4d63f454f2a51b4fc5026aad74b359;hb=746550cff061581f89c687ada8523670768364f2;hp=5b51a76b22de089c564e0ec82efe4858c8a78393;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c index 5b51a76b2..c357ab7f9 100644 --- a/drivers/char/vc_screen.c +++ b/drivers/char/vc_screen.c @@ -102,7 +102,7 @@ extern char con_buf[PAGE_SIZE]; extern struct semaphore con_buf_sem; static ssize_t -vcs_read(struct file *file, char *buf, size_t count, loff_t *ppos) +vcs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { struct inode *inode = file->f_dentry->d_inode; unsigned int currcons = iminor(inode); @@ -271,7 +271,7 @@ unlock_out: } static ssize_t -vcs_write(struct file *file, const char *buf, size_t count, loff_t *ppos) +vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { struct inode *inode = file->f_dentry->d_inode; unsigned int currcons = iminor(inode);