summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ncpfs/dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index 17de5c13dfae..f5b594e2457c 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct qstr *this)
133 return 0; 133 return 0;
134 134
135 if (!ncp_case_sensitive(inode)) { 135 if (!ncp_case_sensitive(inode)) {
136 struct super_block *sb = dentry->d_sb;
137 struct nls_table *t; 136 struct nls_table *t;
138 unsigned long hash; 137 unsigned long hash;
139 int i; 138 int i;
140 139
141 t = NCP_IO_TABLE(sb); 140 t = NCP_IO_TABLE(dentry->d_sb);
142 hash = init_name_hash(dentry); 141 hash = init_name_hash(dentry);
143 for (i=0; i<this->len ; i++) 142 for (i=0; i<this->len ; i++)
144 hash = partial_name_hash(ncp_tolower(t, this->name[i]), 143 hash = partial_name_hash(ncp_tolower(t, this->name[i]),