diff options
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/dir.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index c6cbdd0f636c..d1725a9914ac 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c | |||
@@ -172,7 +172,9 @@ struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir, | |||
172 | 172 | ||
173 | #ifdef CONFIG_UBIFS_FS_DEBUG | 173 | #ifdef CONFIG_UBIFS_FS_DEBUG |
174 | 174 | ||
175 | static int dbg_check_name(struct ubifs_dent_node *dent, struct qstr *nm) | 175 | static int dbg_check_name(const struct ubifs_info *c, |
176 | const struct ubifs_dent_node *dent, | ||
177 | const struct qstr *nm) | ||
176 | { | 178 | { |
177 | if (!(ubifs_chk_flags & UBIFS_CHK_GEN)) | 179 | if (!(ubifs_chk_flags & UBIFS_CHK_GEN)) |
178 | return 0; | 180 | return 0; |
@@ -185,7 +187,7 @@ static int dbg_check_name(struct ubifs_dent_node *dent, struct qstr *nm) | |||
185 | 187 | ||
186 | #else | 188 | #else |
187 | 189 | ||
188 | #define dbg_check_name(dent, nm) 0 | 190 | #define dbg_check_name(c, dent, nm) 0 |
189 | 191 | ||
190 | #endif | 192 | #endif |
191 | 193 | ||
@@ -219,7 +221,7 @@ static struct dentry *ubifs_lookup(struct inode *dir, struct dentry *dentry, | |||
219 | goto out; | 221 | goto out; |
220 | } | 222 | } |
221 | 223 | ||
222 | if (dbg_check_name(dent, &dentry->d_name)) { | 224 | if (dbg_check_name(c, dent, &dentry->d_name)) { |
223 | err = -EINVAL; | 225 | err = -EINVAL; |
224 | goto out; | 226 | goto out; |
225 | } | 227 | } |