summaryrefslogtreecommitdiff
path: root/drivers/staging/smbfs/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/smbfs/cache.c')
-rw-r--r--drivers/staging/smbfs/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/smbfs/cache.c b/drivers/staging/smbfs/cache.c
index dbb98658148b..dbd2e1df3ba9 100644
--- a/drivers/staging/smbfs/cache.c
+++ b/drivers/staging/smbfs/cache.c
@@ -145,8 +145,8 @@ smb_fill_cache(struct file *filp, void *dirent, filldir_t filldir,
goto end_advance;
} else {
hashed = 1;
- memcpy((char *) newdent->d_name.name, qname->name,
- newdent->d_name.len);
+ /* dir i_mutex is locked because we're in readdir */
+ dentry_update_name_case(newdent, qname);
}
if (!newdent->d_inode) {