Skip to content

Commit bda9a71

Browse files
author
Miklos Szeredi
committed
fuse: annotate lock in fuse_reverse_inval_entry()
Add missing inode lock annotatation; found by syzbot. Reported-and-tested-by: [email protected] Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 36ea233 commit bda9a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ int fuse_reverse_inval_entry(struct fuse_conn *fc, u64 parent_nodeid,
10791079
if (!parent)
10801080
return -ENOENT;
10811081

1082-
inode_lock(parent);
1082+
inode_lock_nested(parent, I_MUTEX_PARENT);
10831083
if (!S_ISDIR(parent->i_mode))
10841084
goto unlock;
10851085

0 commit comments

Comments
 (0)