diff --git a/fs/fuse/backing.c b/fs/fuse/backing.c index 8da15a080c8f..ae4eb9d66781 100644 --- a/fs/fuse/backing.c +++ b/fs/fuse/backing.c @@ -339,8 +339,10 @@ void *fuse_create_open_finalize( struct fuse_entry_out *feo = fa->out_args[0].value; struct fuse_open_out *foo = fa->out_args[1].value; - fi->nodeid = feo->nodeid; - ff->fh = foo->fh; + if (fi) + fi->nodeid = feo->nodeid; + if (ff) + ff->fh = foo->fh; return 0; }