diff options
author | Joe Perches <joe@perches.com> | 2011-05-28 10:36:21 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 13:55:02 +0200 |
commit | dc8a5c9935d8e63123fab0d0033f15819351d0bf (patch) | |
tree | 55c4f69ea8901602b798c66363ca596bf4f92fbf /drivers/s390/cio/blacklist.c | |
parent | 81d66c70b546e7be5d7e1f1ca9676fd17c5973af (diff) | |
download | linux-stable-dc8a5c9935d8e63123fab0d0033f15819351d0bf.tar.gz linux-stable-dc8a5c9935d8e63123fab0d0033f15819351d0bf.tar.bz2 linux-stable-dc8a5c9935d8e63123fab0d0033f15819351d0bf.zip |
s390: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/s390/cio/blacklist.c')
-rw-r--r-- | drivers/s390/cio/blacklist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/cio/blacklist.c b/drivers/s390/cio/blacklist.c index 76058a5166ed..08c66035dd19 100644 --- a/drivers/s390/cio/blacklist.c +++ b/drivers/s390/cio/blacklist.c @@ -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; |