diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 57155dc53530..2e53e6f09440 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -361,7 +361,7 @@ ssize_t trace_seq_to_user(struct trace_seq *s, char __user *ubuf, size_t cnt) | |||
361 | 361 | ||
362 | cnt -= ret; | 362 | cnt -= ret; |
363 | 363 | ||
364 | s->readpos += len; | 364 | s->readpos += cnt; |
365 | return cnt; | 365 | return cnt; |
366 | } | 366 | } |
367 | 367 | ||
@@ -380,7 +380,7 @@ ssize_t trace_seq_to_buffer(struct trace_seq *s, void *buf, size_t cnt) | |||
380 | if (!ret) | 380 | if (!ret) |
381 | return -EFAULT; | 381 | return -EFAULT; |
382 | 382 | ||
383 | s->readpos += len; | 383 | s->readpos += cnt; |
384 | return cnt; | 384 | return cnt; |
385 | } | 385 | } |
386 | 386 | ||