From: Mathias Krause Date: Wed, 3 Aug 2011 18:57:11 +0000 (-0400) Subject: ext4: use kzalloc in ext4_kzalloc() X-Git-Tag: v3.1-rc1~43^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db9481c0476c6475d058ac7ecebb5a822b43cc99;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index e2d88ba..4687fea 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -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;