Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264795
b: refs/heads/master
c: dc8a5c9
h: refs/heads/master
i:
  264793: 706c995
  264791: 367bd8c
v: v3
  • Loading branch information
Joe Perches authored and Jiri Kosina committed Sep 15, 2011
1 parent 02575d4 commit d12c2df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 81d66c70b546e7be5d7e1f1ca9676fd17c5973af
refs/heads/master: dc8a5c9935d8e63123fab0d0033f15819351d0bf
3 changes: 1 addition & 2 deletions trunk/arch/s390/hypfs/hypfs_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,9 @@ static int dbfs_d204_create(void **data, void **data_free_ptr, size_t *size)
void *base;

buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr);
base = vmalloc(buf_size);
base = vzalloc(buf_size);
if (!base)
return -ENOMEM;
memset(base, 0, buf_size);
d204 = page_align_ptr(base + sizeof(d204->hdr)) - sizeof(d204->hdr);
rc = diag204_do_store(d204->buf, diag204_buf_pages);
if (rc) {
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/s390/cio/blacklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,9 @@ cio_ignore_write(struct file *file, const char __user *user_buf,
return -EINVAL;
if (user_len > 65536)
user_len = 65536;
buf = vmalloc (user_len + 1); /* maybe better use the stack? */
buf = vzalloc(user_len + 1); /* maybe better use the stack? */
if (buf == NULL)
return -ENOMEM;
memset(buf, 0, user_len + 1);

if (strncpy_from_user (buf, user_buf, user_len) < 0) {
rc = -EFAULT;
Expand Down

0 comments on commit d12c2df

Please sign in to comment.