Commit f0f23f09 authored by Brian Gerst's avatar Brian Gerst Committed by Linus Torvalds

[PATCH] correction to super_block cleanups

I forgot to zero out the newly allocated memory in the previous patches
for cramfs and minixfs.
parent f7d5152e
...@@ -201,6 +201,7 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -201,6 +201,7 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
if (!sbi) if (!sbi)
return -ENOMEM; return -ENOMEM;
sb->u.generic_sbp = sbi; sb->u.generic_sbp = sbi;
memset(sbi, 0, sizeof(struct cramfs_sb_info));
sb_set_blocksize(sb, PAGE_CACHE_SIZE); sb_set_blocksize(sb, PAGE_CACHE_SIZE);
......
...@@ -178,6 +178,7 @@ static int minix_fill_super(struct super_block *s, void *data, int silent) ...@@ -178,6 +178,7 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)
if (!sbi) if (!sbi)
return -ENOMEM; return -ENOMEM;
s->u.generic_sbp = sbi; s->u.generic_sbp = sbi;
memset(sbi, 0, sizeof(struct minix_sb_info));
/* N.B. These should be compile-time tests. /* N.B. These should be compile-time tests.
Unfortunately that is impossible. */ Unfortunately that is impossible. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment