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

Commit 4975e45f authored by Denis Cheng's avatar Denis Cheng Committed by Linus Torvalds
Browse files

fs: use kmem_cache_zalloc instead

parent 87400c04
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -102,12 +102,11 @@ struct file *get_empty_filp(void)
			goto over;
	}

	f = kmem_cache_alloc(filp_cachep, GFP_KERNEL);
	f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL);
	if (f == NULL)
		goto fail;

	percpu_counter_inc(&nr_files);
	memset(f, 0, sizeof(*f));
	if (security_file_alloc(f))
		goto fail_sec;