• Eric Paris's avatar
    inotify: fix error paths in inotify_update_watch · 7e790dd5
    Eric Paris authored
    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>
    7e790dd5
inotify_user.c 19.5 KB