git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'drm-ttm-unmappable' into drm-core-next
[pandora-kernel.git]
/
drivers
/
s390
/
char
/
sclp_async.c
diff --git
a/drivers/s390/char/sclp_async.c
b/drivers/s390/char/sclp_async.c
index
2aecf7f
..
7ad30e7
100644
(file)
--- a/
drivers/s390/char/sclp_async.c
+++ b/
drivers/s390/char/sclp_async.c
@@
-85,7
+85,7
@@
static int proc_handler_callhome(struct ctl_table *ctl, int write,
rc = copy_from_user(buf, buffer, sizeof(buf));
if (rc != 0)
return -EFAULT;
- buf[
len
- 1] = '\0';
+ buf[
sizeof(buf)
- 1] = '\0';
if (strict_strtoul(buf, 0, &val) != 0)
return -EINVAL;
if (val != 0 && val != 1)