diff options
author | Nathan Zimmer <[email protected]> | 2013-08-28 16:35:14 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-08-28 19:26:38 -0700 |
commit | 84a78a6504f5c5394a8e558702e5b54131f01d14 (patch) | |
tree | bd56909861d573e35ef940182891fe1eb210fec8 /lib/memory-notifier-error-inject.c | |
parent | fa8218def1b1a16f0a410e2c1c767b4738cc81fa (diff) |
timer_list: correct the iterator for timer_list
Correct an issue with /proc/timer_list reported by Holger.
When reading from the proc file with a sufficiently small buffer, 2k so
not really that small, there was one could get hung trying to read the
file a chunk at a time.
The timer_list_start function failed to account for the possibility that
the offset was adjusted outside the timer_list_next.
Signed-off-by: Nathan Zimmer <[email protected]>
Reported-by: Holger Hans Peter Freyther <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Berke Durak <[email protected]>
Cc: Jeff Layton <[email protected]>
Tested-by: Al Viro <[email protected]>
Cc: <[email protected]> # 3.10.x
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions