X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fnvram.c;h=b5f32d65e5453d37513b962699949bb307890400;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=7b6ee59edf081e89f9b3c954f9366135c7ee0207;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9;p=linux-2.6.git diff --git a/drivers/char/nvram.c b/drivers/char/nvram.c index 7b6ee59ed..b5f32d65e 100644 --- a/drivers/char/nvram.c +++ b/drivers/char/nvram.c @@ -250,7 +250,7 @@ static loff_t nvram_llseek(struct file *file,loff_t offset, int origin ) } static ssize_t -nvram_read(struct file *file, char *buf, size_t count, loff_t *ppos) +nvram_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { unsigned char contents[NVRAM_BYTES]; unsigned i = *ppos; @@ -279,7 +279,7 @@ nvram_read(struct file *file, char *buf, size_t count, loff_t *ppos) } static ssize_t -nvram_write(struct file *file, const char *buf, size_t count, loff_t *ppos) +nvram_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { unsigned char contents[NVRAM_BYTES]; unsigned i = *ppos;