Skip to content
Commit 7e790dd5 authored by Eric Paris's avatar Eric Paris
Browse files

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: default avatarEric Paris <eparis@redhat.com>
parent 75fe2b26
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment