aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 5cd43bf917a4..de4a0a0bda8a 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -852,9 +852,11 @@ static int fuse_dev_release(struct inode *inode, struct file *file)
852 fc->connected = 0; 852 fc->connected = 0;
853 end_requests(fc, &fc->pending); 853 end_requests(fc, &fc->pending);
854 end_requests(fc, &fc->processing); 854 end_requests(fc, &fc->processing);
855 fuse_release_conn(fc);
856 } 855 }
857 spin_unlock(&fuse_lock); 856 spin_unlock(&fuse_lock);
857 if (fc)
858 kobject_put(&fc->kobj);
859
858 return 0; 860 return 0;
859} 861}
860 862