Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.24.4 /fs/inotify_user.c

Filename:/fs/inotify_user.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.24.3  2.6.24.3-rc1  2.6.24-git22  2.6.24-git21  2.6.24-git20  2.6.24-git19 
(Following) 2.6.24.5  2.6.24.6  2.6.24.7  2.6.25-rc7  2.6.25-rc8  2.6.25-rc9 

Location
[  2.6.24.4
  [  fs
     o  inotify_user.c

Patch

diff --git a/fs/inotify_user.c b/fs/inotify_user.c
index 5e00933..7253ffd 100644
--- a/fs/inotify_user.c
+++ b/fs/inotify_user.c
@@ -269,7 +269,7 @@ static void inotify_dev_queue_event(struct inotify_watch *w, u32 wd, u32 mask,
    /* we can safely put the watch as we don't reference it while
     * generating the event
     */
-   if (mask & IN_IGNORED || mask & IN_ONESHOT)
+   if (mask & IN_IGNORED || w->mask & IN_ONESHOT)
       put_inotify_watch(w); /* final put */
 
    /* coalescing: drop this event if it is a dupe of the previous */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.