Skip to content

Commit 56d250e

Browse files
author
Miklos Szeredi
committed
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>
1 parent 17b2cbe commit 56d250e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/fuse/cuse.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,10 @@ static int cuse_open(struct inode *inode, struct file *file)
142142

143143
static int cuse_release(struct inode *inode, struct file *file)
144144
{
145-
struct fuse_inode *fi = get_fuse_inode(inode);
146145
struct fuse_file *ff = file->private_data;
147146
struct fuse_conn *fc = ff->fc;
148147

149-
fuse_sync_release(fi, ff, file->f_flags);
148+
fuse_sync_release(NULL, ff, file->f_flags);
150149
fuse_conn_put(fc);
151150

152151
return 0;

0 commit comments

Comments
 (0)