Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288919
b: refs/heads/master
c: 350a195
h: refs/heads/master
i:
  288917: 6892688
  288915: 8191296
  288911: 10b753f
v: v3
  • Loading branch information
Tim Bird authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent eacfc74 commit db8d757
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 169c843afffcb328390ef39ff95227596d6f63c4
refs/heads/master: 350a1955957d73352c043d0f948e3f28bb118c57
6 changes: 6 additions & 0 deletions trunk/drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ static ssize_t do_write_log_from_user(struct logger_log *log,

if (count != len)
if (copy_from_user(log->buffer, buf + len, count - len))
/*
* Note that by not updating w_off, this abandons the
* portion of the new entry that *was* successfully
* copied, just above. This is intentional to avoid
* message corruption from missing fragments.
*/
return -EFAULT;

log->w_off = logger_offset(log, log->w_off + count);
Expand Down

0 comments on commit db8d757

Please sign in to comment.