Commit:     a5001a27802723d6de50d9d8a446d594116524b0
Parent:     abd4aa5a97ebc0efb9a7fbc98ef0bcf39266fadf
Author:     Wyatt Banks <[EMAIL PROTECTED]>
AuthorDate: Sun Jul 15 23:40:50 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 09:05:46 2007 -0700

    HFSPlus: change kmalloc/memset to kzalloc
    Removed kmalloc and memset in favor of kzalloc.
    To explain the HFSPLUS_SB() macro in the removed memset call:
    hfsplus_fs.h:#define HFSPLUS_SB(super)  (*(struct hfsplus_sb_info 
    Signed-off-by: Wyatt Banks <[EMAIL PROTECTED]>
    Cc: Roman Zippel <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/hfsplus/super.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index ebd1b38..42570c9 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -283,11 +283,10 @@ static int hfsplus_fill_super(struct super_block *sb, 
void *data, int silent)
        struct nls_table *nls = NULL;
        int err = -EINVAL;
-       sbi = kmalloc(sizeof(struct hfsplus_sb_info), GFP_KERNEL);
+       sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
        if (!sbi)
                return -ENOMEM;
-       memset(sbi, 0, sizeof(HFSPLUS_SB(sb)));
        sb->s_fs_info = sbi;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to