Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198625
b: refs/heads/master
c: 563b046
h: refs/heads/master
i:
  198623: 583e24b
v: v3
  • Loading branch information
J. R. Okajima authored and David S. Miller committed May 25, 2010
1 parent f1de769 commit c0044eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: dd7496f217462a23a9a8a15b9925866eaad76e22
refs/heads/master: 563b04671017ea00ba563ebeebdc36bce79b1b60
4 changes: 3 additions & 1 deletion trunk/kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2253,6 +2253,8 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
if (write) {
left -= proc_skip_spaces(&kbuf);

if (!left)
break;
err = proc_get_long(&kbuf, &left, &lval, &neg,
proc_wspace_sep,
sizeof(proc_wspace_sep), NULL);
Expand All @@ -2279,7 +2281,7 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,

if (!write && !first && left && !err)
err = proc_put_char(&buffer, &left, '\n');
if (write && !err)
if (write && !err && left)
left -= proc_skip_spaces(&kbuf);
free:
if (write) {
Expand Down

0 comments on commit c0044eb

Please sign in to comment.