Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8744969a authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

fuse_file_alloc(): fix NULL dereferences



Fix obvious NULL dereferences spotted by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Acked-by: default avatarMiklos Szeredi <miklos@szeredi.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent be21f0ab
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -55,10 +55,11 @@ struct fuse_file *fuse_file_alloc(void)
		if (!ff->reserved_req) {
			kfree(ff);
			ff = NULL;
		}
		} else {
			INIT_LIST_HEAD(&ff->write_entry);
			atomic_set(&ff->count, 0);
		}
	}
	return ff;
}