diff options
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index fa8c21d913bc..8e9d37d44e9d 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -57,11 +57,6 @@ build_path_from_dentry(struct dentry *direntry) | |||
57 | struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); | 57 | struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); |
58 | unsigned seq; | 58 | unsigned seq; |
59 | 59 | ||
60 | if (direntry == NULL) | ||
61 | return NULL; /* not much we can do if dentry is freed and | ||
62 | we need to reopen the file after it was closed implicitly | ||
63 | when the server crashed */ | ||
64 | |||
65 | dirsep = CIFS_DIR_SEP(cifs_sb); | 60 | dirsep = CIFS_DIR_SEP(cifs_sb); |
66 | if (tcon->Flags & SMB_SHARE_IS_IN_DFS) | 61 | if (tcon->Flags & SMB_SHARE_IS_IN_DFS) |
67 | dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); | 62 | dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); |