aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/blacklist.c3
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,
335 return -EINVAL; 335 return -EINVAL;
336 if (user_len > 65536) 336 if (user_len > 65536)
337 user_len = 65536; 337 user_len = 65536;
338 buf = vmalloc (user_len + 1); /* maybe better use the stack? */ 338 buf = vzalloc(user_len + 1); /* maybe better use the stack? */
339 if (buf == NULL) 339 if (buf == NULL)
340 return -ENOMEM; 340 return -ENOMEM;
341 memset(buf, 0, user_len + 1);
342 341
343 if (strncpy_from_user (buf, user_buf, user_len) < 0) { 342 if (strncpy_from_user (buf, user_buf, user_len) < 0) {
344 rc = -EFAULT; 343 rc = -EFAULT;