Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281078
b: refs/heads/master
c: ebadb73
h: refs/heads/master
v: v3
  • Loading branch information
Bernhard Heinloth authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent beb14e0 commit ca5ed1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: a75311dcb8aa871051e07dad5bed74d6de2a6e69
refs/heads/master: ebadb730435b74483daedcd59d664a2dccbe3903
6 changes: 3 additions & 3 deletions trunk/drivers/staging/zcache/zcache-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ static ssize_t zv_max_zsize_store(struct kobject *kobj,
if (!capable(CAP_SYS_ADMIN))
return -EPERM;

err = strict_strtoul(buf, 10, &val);
err = kstrtoul(buf, 10, &val);
if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
return -EINVAL;
zv_max_zsize = val;
Expand Down Expand Up @@ -819,7 +819,7 @@ static ssize_t zv_max_mean_zsize_store(struct kobject *kobj,
if (!capable(CAP_SYS_ADMIN))
return -EPERM;

err = strict_strtoul(buf, 10, &val);
err = kstrtoul(buf, 10, &val);
if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
return -EINVAL;
zv_max_mean_zsize = val;
Expand Down Expand Up @@ -853,7 +853,7 @@ static ssize_t zv_page_count_policy_percent_store(struct kobject *kobj,
if (!capable(CAP_SYS_ADMIN))
return -EPERM;

err = strict_strtoul(buf, 10, &val);
err = kstrtoul(buf, 10, &val);
if (err || (val == 0) || (val > 150))
return -EINVAL;
zv_page_count_policy_percent = val;
Expand Down

0 comments on commit ca5ed1f

Please sign in to comment.