diff options
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index e0a2dc6fcaf..1e11ed716f8 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -414,6 +414,7 @@ static void reset_readdir(struct ceph_file_info *fi) | |||
414 | fi->last_readdir = NULL; | 414 | fi->last_readdir = NULL; |
415 | } | 415 | } |
416 | kfree(fi->last_name); | 416 | kfree(fi->last_name); |
417 | fi->last_name = NULL; | ||
417 | fi->next_offset = 2; /* compensate for . and .. */ | 418 | fi->next_offset = 2; /* compensate for . and .. */ |
418 | if (fi->dentry) { | 419 | if (fi->dentry) { |
419 | dput(fi->dentry); | 420 | dput(fi->dentry); |