Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371706
b: refs/heads/master
c: 0d861ac
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Mar 13, 2013
1 parent 3d743a8 commit 6652d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb7c06e8e9c93b495e355421cffd3c43c266d7d2
refs/heads/master: 0d861ac23812428deae17de2038234b79818b964
4 changes: 2 additions & 2 deletions trunk/sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int resize_info_buffer(struct snd_info_buffer *buffer,
char *nbuf;

nsize = PAGE_ALIGN(nsize);
nbuf = krealloc(buffer->buffer, nsize, GFP_KERNEL);
nbuf = krealloc(buffer->buffer, nsize, GFP_KERNEL | __GFP_ZERO);
if (! nbuf)
return -ENOMEM;

Expand Down Expand Up @@ -353,7 +353,7 @@ static int snd_info_entry_open(struct inode *inode, struct file *file)
goto __nomem;
data->rbuffer = buffer;
buffer->len = PAGE_SIZE;
buffer->buffer = kmalloc(buffer->len, GFP_KERNEL);
buffer->buffer = kzalloc(buffer->len, GFP_KERNEL);
if (buffer->buffer == NULL)
goto __nomem;
}
Expand Down

0 comments on commit 6652d56

Please sign in to comment.