diff options
| -rw-r--r-- | fs/fuse/file.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index a5f79c59fe1e..7069ea232049 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
| @@ -246,14 +246,9 @@ static void fuse_prepare_release(struct fuse_file *ff, int flags, int opcode) | |||
| 246 | 246 | ||
| 247 | void fuse_release_common(struct file *file, int opcode) | 247 | void fuse_release_common(struct file *file, int opcode) |
| 248 | { | 248 | { |
| 249 | struct fuse_file *ff; | 249 | struct fuse_file *ff = file->private_data; |
| 250 | struct fuse_req *req; | 250 | struct fuse_req *req = ff->reserved_req; |
| 251 | |||
| 252 | ff = file->private_data; | ||
| 253 | if (unlikely(!ff)) | ||
| 254 | return; | ||
| 255 | 251 | ||
| 256 | req = ff->reserved_req; | ||
| 257 | fuse_prepare_release(ff, file->f_flags, opcode); | 252 | fuse_prepare_release(ff, file->f_flags, opcode); |
| 258 | 253 | ||
| 259 | if (ff->flock) { | 254 | if (ff->flock) { |
