diff options
Diffstat (limited to 'fs/autofs/inode.c')
-rw-r--r-- | fs/autofs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index af2efbbb5d76..c81d6b8c2828 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c | |||
@@ -129,10 +129,9 @@ int autofs_fill_super(struct super_block *s, void *data, int silent) | |||
129 | struct autofs_sb_info *sbi; | 129 | struct autofs_sb_info *sbi; |
130 | int minproto, maxproto; | 130 | int minproto, maxproto; |
131 | 131 | ||
132 | sbi = kmalloc(sizeof(*sbi), GFP_KERNEL); | 132 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
133 | if ( !sbi ) | 133 | if ( !sbi ) |
134 | goto fail_unlock; | 134 | goto fail_unlock; |
135 | memset(sbi, 0, sizeof(*sbi)); | ||
136 | DPRINTK(("autofs: starting up, sbi = %p\n",sbi)); | 135 | DPRINTK(("autofs: starting up, sbi = %p\n",sbi)); |
137 | 136 | ||
138 | s->s_fs_info = sbi; | 137 | s->s_fs_info = sbi; |