Skip to content

Commit 6683de3

Browse files
dhowellsAl Viro
authored andcommitted
configfs: Fix inconsistent use of file_inode() vs file->f_path.dentry->d_inode
Fix inconsistent use of file_inode() vs file->f_path.dentry->d_inode. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 4bbcbd3 commit 6683de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/configfs/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence)
15981598
if (offset >= 0)
15991599
break;
16001600
default:
1601-
mutex_unlock(&file_inode(file)->i_mutex);
1601+
mutex_unlock(&dentry->d_inode->i_mutex);
16021602
return -EINVAL;
16031603
}
16041604
if (offset != file->f_pos) {

0 commit comments

Comments
 (0)