ext4: use kzalloc in ext4_kzalloc()
authorMathias Krause <minipli@googlemail.com>
Wed, 3 Aug 2011 18:57:11 +0000 (14:57 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Aug 2011 18:57:11 +0000 (14:57 -0400)
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>
fs/ext4/super.c

index e2d88baf91d33a39fc0136565e7640ac368a4721..4687fea0c00f24498ff58c80e7d39d9c086bd62a 100644 (file)
@@ -124,7 +124,7 @@ void *ext4_kvzalloc(size_t size, gfp_t flags)
 {
        void *ret;
 
 {
        void *ret;
 
-       ret = kmalloc(size, flags);
+       ret = kzalloc(size, flags);
        if (!ret)
                ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL);
        return ret;
        if (!ret)
                ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL);
        return ret;