summaryrefslogtreecommitdiff
path: root/fs/inotify.c
diff options
context:
space:
mode:
authorRobert Love <rml@novell.com>2005-08-15 12:27:54 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-15 09:48:31 -0700
commit0bf955ce98cb3cf40e20d0cc435299eb76e8819e (patch)
treec1fd8207f7d7b3e1db7d0f28ffae88f0dc205083 /fs/inotify.c
parent2ba84684e8cf6f980e4e95a2300f53a505eb794e (diff)
downloadlinux-3.10-0bf955ce98cb3cf40e20d0cc435299eb76e8819e.tar.gz
linux-3.10-0bf955ce98cb3cf40e20d0cc435299eb76e8819e.tar.bz2
linux-3.10-0bf955ce98cb3cf40e20d0cc435299eb76e8819e.zip
[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 <rml@novell.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/inotify.c')
-rw-r--r--fs/inotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inotify.c b/fs/inotify.c
index 27ebcac5e07..868901b1e77 100644
--- a/fs/inotify.c
+++ b/fs/inotify.c
@@ -402,7 +402,7 @@ static struct inotify_watch *create_watch(struct inotify_device *dev,
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);