Revert "use clamp_t in UNAME26 fix"
This reverts commit 9ffe27c55e.
Preperatory to re-application with the correct upstream SHA1.
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
This commit is contained in:
@@ -1200,7 +1200,7 @@ static int override_release(char __user *release, size_t len)
|
||||
rest++;
|
||||
}
|
||||
v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 40;
|
||||
copy = clamp_t(size_t, len, 1, sizeof(buf));
|
||||
copy = min(sizeof(buf), max_t(size_t, 1, len));
|
||||
copy = scnprintf(buf, copy, "2.6.%u%s", v, rest);
|
||||
ret = copy_to_user(release, buf, copy + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user