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

Commit db9481c0 authored by Mathias Krause's avatar Mathias Krause Committed by Theodore Ts'o
Browse files

ext4: use kzalloc in ext4_kzalloc()



Commit 9933fc0i (ext4: introduce ext4_kvmalloc(), ext4_kzalloc(), and
ext4_kvfree()) intruduced wrappers around k*alloc/vmalloc but introduced
a typo for ext4_kzalloc() by not using kzalloc() but kmalloc().

Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent ed8f3737
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ void *ext4_kvzalloc(size_t size, gfp_t flags)
{
	void *ret;

	ret = kmalloc(size, flags);
	ret = kzalloc(size, flags);
	if (!ret)
		ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL);
	return ret;