projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bbcbd3
)
configfs: Fix inconsistent use of file_inode() vs file->f_path.dentry->d_inode
author
David Howells
<dhowells@redhat.com>
Mon, 2 Mar 2015 16:40:32 +0000
(16:40 +0000)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 15 Apr 2015 19:05:31 +0000
(15:05 -0400)
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>
fs/configfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/configfs/dir.c
b/fs/configfs/dir.c
index cf0db005d2f58ab2ed2b42217777f643e6d0d235..acb3d63bc9dc763cf8e3518cfe66a233ee9ee63f 100644
(file)
--- a/
fs/configfs/dir.c
+++ b/
fs/configfs/dir.c
@@
-1598,7
+1598,7
@@
static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence)
if (offset >= 0)
break;
default:
- mutex_unlock(&
file_inode(file)
->i_mutex);
+ mutex_unlock(&
dentry->d_inode
->i_mutex);
return -EINVAL;
}
if (offset != file->f_pos) {