mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fuse: release: private_data cannot be NULL
Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
parent
267d84449f
commit
9a87ad3da9
1 changed files with 2 additions and 7 deletions
|
|
@ -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)
|
||||
{
|
||||
struct fuse_file *ff;
|
||||
struct fuse_req *req;
|
||||
struct fuse_file *ff = file->private_data;
|
||||
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);
|
||||
|
||||
if (ff->flock) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue