mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] use kzalloc and kcalloc in core fs code
Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
656bde5728
commit
11b0b5abb2
8 changed files with 10 additions and 22 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue