Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262400
b: refs/heads/master
c: d5f4d11
h: refs/heads/master
v: v3
  • Loading branch information
Peter Huewe authored and Heiko Carstens committed Aug 3, 2011
1 parent 96fae13 commit 51599f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: ada5ed5484f492e4eb13d788c6c077cf243f53e6
refs/heads/master: d5f4d113cb9dac182ba44eb605ec4a2f1fdfd3ec
9 changes: 3 additions & 6 deletions trunk/drivers/s390/char/sclp_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,9 @@ static int proc_handler_callhome(struct ctl_table *ctl, int write,
return -EFAULT;
} else {
len = *count;
rc = copy_from_user(buf, buffer, sizeof(buf));
if (rc != 0)
return -EFAULT;
buf[sizeof(buf) - 1] = '\0';
if (strict_strtoul(buf, 0, &val) != 0)
return -EINVAL;
rc = kstrtoul_from_user(buffer, len, 0, &val);
if (rc)
return rc;
if (val != 0 && val != 1)
return -EINVAL;
callhome_enabled = val;
Expand Down

0 comments on commit 51599f3

Please sign in to comment.