summaryrefslogtreecommitdiff
path: root/fs/fuse/cuse.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2019-08-29 12:01:18 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2019-09-02 12:07:30 +0300
commit56d250ef9650edce600c96e2f918b9b9bafda85e (patch)
treedae073179c98d3868e3cca19d210593bac617447 /fs/fuse/cuse.c
parent17b2cbe294922ec2b78e29b93ed602b56cd75a4e (diff)
downloadlinux-56d250ef9650edce600c96e2f918b9b9bafda85e.tar.xz
cuse: fix broken release
The inode parameter in cuse_release() is likely *not* a fuse inode. It's a small wonder it didn't blow up until now. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/cuse.c')
-rw-r--r--fs/fuse/cuse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fuse/cuse.c b/fs/fuse/cuse.c
index bab7a0db81dd..d011a1ad1d4f 100644
--- a/fs/fuse/cuse.c
+++ b/fs/fuse/cuse.c
@@ -142,11 +142,10 @@ static int cuse_open(struct inode *inode, struct file *file)
static int cuse_release(struct inode *inode, struct file *file)
{
- struct fuse_inode *fi = get_fuse_inode(inode);
struct fuse_file *ff = file->private_data;
struct fuse_conn *fc = ff->fc;
- fuse_sync_release(fi, ff, file->f_flags);
+ fuse_sync_release(NULL, ff, file->f_flags);
fuse_conn_put(fc);
return 0;