projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ba8468
)
[PATCH] inotify: fix idr_get_new_above usage
author
Robert Love
<rml@novell.com>
Mon, 15 Aug 2005 16:27:54 +0000
(12:27 -0400)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 15 Aug 2005 16:48:31 +0000
(09:48 -0700)
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>
fs/inotify.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/inotify.c
b/fs/inotify.c
index 27ebcac5e07ff8f67afe7594d25aa5d384814951..868901b1e779301c5bae15911ae89dcc49aa2fe8 100644
(file)
--- 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);