fuse: Uninitialized variable in fuse_epoch_work()
Changes
1 files changed · +2 −3
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/fuse/dir.c | modified | +2 | −3 | View file |
fs/fuse/dir.c
View filediff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 963f53f..2aec225 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -199,9 +199,8 @@ void fuse_epoch_work(struct work_struct *work)
down_read(&fc->killsb);
inode = fuse_ilookup(fc, FUSE_ROOT_ID, &fm);
- iput(inode);
-
- if (fm) {
+ if (inode) {
+ iput(inode);
/* Remove all possible active references to cached inodes */
shrink_dcache_sb(fm->sb);
} else