Skip to content

Commit db9481c

Browse files
miniplitytso
authored andcommitted
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: Mathias Krause <minipli@googlemail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent ed8f373 commit db9481c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ext4/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void *ext4_kvzalloc(size_t size, gfp_t flags)
124124
{
125125
void *ret;
126126

127-
ret = kmalloc(size, flags);
127+
ret = kzalloc(size, flags);
128128
if (!ret)
129129
ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL);
130130
return ret;

0 commit comments

Comments
 (0)