Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376044
b: refs/heads/master
c: bd47125
h: refs/heads/master
v: v3
  • Loading branch information
Xiong Zhou authored and Greg Kroah-Hartman committed May 16, 2013
1 parent 8cde99b commit bc40472
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 410b6372d780da3e3594bc107139af9d049d3ac5
refs/heads/master: bd471258f2e0911f29d5dc3e1689de35518a157a
4 changes: 2 additions & 2 deletions trunk/drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static ssize_t do_read_log_to_user(struct logger_log *log,
* 'log->buffer' which contains the first entry readable by 'euid'
*/
static size_t get_next_entry_by_uid(struct logger_log *log,
size_t off, uid_t euid)
size_t off, kuid_t euid)
{
while (off != log->w_off) {
struct logger_entry *entry;
Expand All @@ -251,7 +251,7 @@ static size_t get_next_entry_by_uid(struct logger_log *log,

entry = get_entry_header(log, off, &scratch);

if (entry->euid == euid)
if (uid_eq(entry->euid, euid))
return off;

next_len = sizeof(struct logger_entry) + entry->len;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/android/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct logger_entry {
__s32 tid;
__s32 sec;
__s32 nsec;
uid_t euid;
kuid_t euid;
char msg[0];
};

Expand Down

0 comments on commit bc40472

Please sign in to comment.