tree c1fd8207f7d7b3e1db7d0f28ffae88f0dc205083 parent 2ba84684e8cf6f980e4e95a2300f53a505eb794e author Robert Love <[EMAIL PROTECTED]> Mon, 15 Aug 2005 20:27:54 -0400 committer Linus Torvalds <[EMAIL PROTECTED]> Mon, 15 Aug 2005 23:48:31 -0700
[PATCH] inotify: fix idr_get_new_above usage We are saving the wrong thing in ->last_wd. We want the wd, not the return value. Signed-off-by: Robert Love <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> fs/inotify.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/inotify.c b/fs/inotify.c --- a/fs/inotify.c +++ b/fs/inotify.c @@ -402,7 +402,7 @@ static struct inotify_watch *create_watc return ERR_PTR(ret); } - dev->last_wd = ret; + dev->last_wd = watch->wd; watch->mask = mask; atomic_set(&watch->count, 0); INIT_LIST_HEAD(&watch->d_list); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html