diff options
author | Eric Paris <eparis@redhat.com> | 2009-07-07 16:28:24 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2009-07-21 21:26:26 +0200 |
commit | 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 (patch) | |
tree | a593a3120eb8dfbf3febdf18b6d530376b593859 /fs/notify/notification.c | |
parent | inotify: do not leak inode marks in inotify_add_watch (diff) | |
download | linux-7e790dd5fc937bc8d2400c30a05e32a9e9eef276.tar.xz linux-7e790dd5fc937bc8d2400c30a05e32a9e9eef276.zip |
inotify: fix error paths in inotify_update_watch
inotify_update_watch could leave things in a horrid state on a number of
error paths. We could try to remove idr entries that didn't exist, we
could send an IN_IGNORED to userspace for watches that don't exist, and a
bit of other stupidity. Clean these up by doing the idr addition before we
put the mark on the inode since we can clean that up on error and getting
off the inode's mark list is hard.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/notification.c')
0 files changed, 0 insertions, 0 deletions