Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334666
b: refs/heads/master
c: 31fd84b
h: refs/heads/master
v: v3
  • Loading branch information
Kees Cook authored and Linus Torvalds committed Oct 20, 2012
1 parent d01937a commit d3d2307
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 8c1bee685e6e9e18ed28cba32f0cec0d2e4effee
refs/heads/master: 31fd84b95eb211d5db460a1dda85e004800a7b52
2 changes: 1 addition & 1 deletion trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ static int override_release(char __user *release, size_t len)
rest++;
}
v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 40;
copy = min(sizeof(buf), max_t(size_t, 1, len));
copy = clamp_t(size_t, len, 1, sizeof(buf));
copy = scnprintf(buf, copy, "2.6.%u%s", v, rest);
ret = copy_to_user(release, buf, copy + 1);
}
Expand Down

0 comments on commit d3d2307

Please sign in to comment.