diff options
Diffstat (limited to 'drivers/char/mbcs.c')
-rw-r--r-- | drivers/char/mbcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/mbcs.c b/drivers/char/mbcs.c index ec7100556c50..ac9cfa9701ea 100644 --- a/drivers/char/mbcs.c +++ b/drivers/char/mbcs.c | |||
@@ -394,7 +394,7 @@ int mbcs_open(struct inode *ip, struct file *fp) | |||
394 | return -ENODEV; | 394 | return -ENODEV; |
395 | } | 395 | } |
396 | 396 | ||
397 | ssize_t mbcs_sram_read(struct file * fp, char *buf, size_t len, loff_t * off) | 397 | ssize_t mbcs_sram_read(struct file * fp, char __user *buf, size_t len, loff_t * off) |
398 | { | 398 | { |
399 | struct cx_dev *cx_dev = fp->private_data; | 399 | struct cx_dev *cx_dev = fp->private_data; |
400 | struct mbcs_soft *soft = cx_dev->soft; | 400 | struct mbcs_soft *soft = cx_dev->soft; |
@@ -419,7 +419,7 @@ ssize_t mbcs_sram_read(struct file * fp, char *buf, size_t len, loff_t * off) | |||
419 | } | 419 | } |
420 | 420 | ||
421 | ssize_t | 421 | ssize_t |
422 | mbcs_sram_write(struct file * fp, const char *buf, size_t len, loff_t * off) | 422 | mbcs_sram_write(struct file * fp, const char __user *buf, size_t len, loff_t * off) |
423 | { | 423 | { |
424 | struct cx_dev *cx_dev = fp->private_data; | 424 | struct cx_dev *cx_dev = fp->private_data; |
425 | struct mbcs_soft *soft = cx_dev->soft; | 425 | struct mbcs_soft *soft = cx_dev->soft; |