netfilter: xt_qtaguid: remove AID_* dependency for access control
[firefly-linux-kernel-4.4.55.git] / kernel / sys.c
index 46ca435564c476348dc76d46413bca85f30dcd34..84e353b1820d4ba188de11ac88c9290625fc6145 100644 (file)
@@ -1152,7 +1152,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);
        }