summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/cio_inject.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/cio/cio_inject.c')
-rw-r--r--drivers/s390/cio/cio_inject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/cio_inject.c b/drivers/s390/cio/cio_inject.c
index 8613fa9372..a2e771ebae 100644
--- a/drivers/s390/cio/cio_inject.c
+++ b/drivers/s390/cio/cio_inject.c
@@ -95,7 +95,7 @@ static ssize_t crw_inject_write(struct file *file, const char __user *buf,
return -EINVAL;
}
- buffer = vmemdup_user(buf, lbuf);
+ buffer = memdup_user_nul(buf, lbuf);
if (IS_ERR(buffer))
return -ENOMEM;