VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Mateusz Jurczyk <mjurczyk@google.com> 2017-06-07 12:26:49 +0200 committer: Miklos Szeredi <mszeredi@redhat.com> 2017-06-09 11:16:22 +0200 commit: 68227c03cba84a24faf8a7277d2b1a03c8959c2c parent: 2ea659a9ef488125eb46da6eb571de5eae5c43f6
Commit Summary:
fuse: initialize the flock flag in fuse_file on allocation
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 3ee4fdc3da9e..76eac2a554c4 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -46,7 +46,7 @@ struct fuse_file *fuse_file_alloc(struct fuse_conn *fc)
 {
 	struct fuse_file *ff;
 
-	ff = kmalloc(sizeof(struct fuse_file), GFP_KERNEL);
+	ff = kzalloc(sizeof(struct fuse_file), GFP_KERNEL);
 	if (unlikely(!ff))
 		return NULL;