https://github.com/torvalds/linux
Revision 7c657f2f25d50c602df9291bc6242b98fc090759 authored by John McCutchan on 26 August 2005, 18:02:04 UTC, committed by Linus Torvalds on 26 August 2005, 18:32:57 UTC
There is an off by one problem with idr_get_new_above.

The comment and function name suggest that it will return an id >
starting_id, but it actually returned an id >= starting_id, and kernel
callers other than inotify treated it as such.

The patch below fixes the comment, and fixes inotifys usage.  The
function name still doesn't match the behaviour, but it never did.

Signed-off-by: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 755528c
History
Tip revision: 7c657f2f25d50c602df9291bc6242b98fc090759 authored by John McCutchan on 26 August 2005, 18:02:04 UTC
[PATCH] Document idr_get_new_above() semantics, update inotify
Tip revision: 7c657f2

README

back to top