diff options
author | Oliver Neukum <neukum@fachschaft.cup.uni-muenchen.de> | 2006-03-25 12:08:13 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 17:23:00 +0100 |
commit | 11b0b5abb2097a63c1081d9b7e825b987b227972 (patch) | |
tree | 162c828c8d807a1b30869acbe11682dc9222dc16 /fs/pipe.c | |
parent | [PATCH] Fix memory leak in isapnp (diff) | |
download | linux-11b0b5abb2097a63c1081d9b7e825b987b227972.tar.xz linux-11b0b5abb2097a63c1081d9b7e825b987b227972.zip |
[PATCH] use kzalloc and kcalloc in core fs code
Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/pipe.c')
-rw-r--r-- | fs/pipe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/pipe.c b/fs/pipe.c index 8aada8e426f4..d976866a115b 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -662,10 +662,9 @@ struct inode* pipe_new(struct inode* inode) { struct pipe_inode_info *info; - info = kmalloc(sizeof(struct pipe_inode_info), GFP_KERNEL); + info = kzalloc(sizeof(struct pipe_inode_info), GFP_KERNEL); if (!info) goto fail_page; - memset(info, 0, sizeof(*info)); inode->i_pipe = info; init_waitqueue_head(PIPE_WAIT(*inode)); |