From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathias Krause Subject: [PATCH] ext4: use kzalloc in ext4_kzalloc() Date: Tue, 2 Aug 2011 08:07:15 +0200 Message-ID: <1312265235-19978-1-git-send-email-minipli@googlemail.com> References: <1312204398-12460-2-git-send-email-tytso@mit.edu> Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Mathias Krause To: Theodore Ts'o , Andreas Dilger Return-path: In-Reply-To: <1312204398-12460-2-git-send-email-tytso@mit.edu> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org 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 --- fs/ext4/super.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.5.6.5