提交 9a87ad3d 编写于 作者: M Miklos Szeredi

fuse: release: private_data cannot be NULL

Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 267d8444
...@@ -246,14 +246,9 @@ static void fuse_prepare_release(struct fuse_file *ff, int flags, int opcode) ...@@ -246,14 +246,9 @@ static void fuse_prepare_release(struct fuse_file *ff, int flags, int opcode)
void fuse_release_common(struct file *file, int opcode) void fuse_release_common(struct file *file, int opcode)
{ {
struct fuse_file *ff; struct fuse_file *ff = file->private_data;
struct fuse_req *req; struct fuse_req *req = ff->reserved_req;
ff = file->private_data;
if (unlikely(!ff))
return;
req = ff->reserved_req;
fuse_prepare_release(ff, file->f_flags, opcode); fuse_prepare_release(ff, file->f_flags, opcode);
if (ff->flock) { if (ff->flock) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册