diff options
-rw-r--r-- | drivers/char/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 1fd4b110d815..48788db4e280 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -555,7 +555,7 @@ static ssize_t write_kmem(struct file * file, const char __user * buf, | |||
555 | err = -EFAULT; | 555 | err = -EFAULT; |
556 | break; | 556 | break; |
557 | } | 557 | } |
558 | sz = vwrite(kbuf, (char *)p, sz); | 558 | vwrite(kbuf, (char *)p, sz); |
559 | count -= sz; | 559 | count -= sz; |
560 | buf += sz; | 560 | buf += sz; |
561 | virtr += sz; | 561 | virtr += sz; |