From: Youngmin Nam Date: Mon, 10 Jun 2019 08:15:37 +0000 (+0900) Subject: [RAMEN9610-19586]vsprintf: fix data type of variable in string_nocheck() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa06f21d213d13ba93c2233d0f6eb85357263166;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-19586]vsprintf: fix data type of variable in string_nocheck() This patch fixes data type of precision with int. The precision is declared as signed int in struct printf_spec. Change-Id: Iaa6e2d074ed9d4ca191a8366489a394d79b62ac1 Signed-off-by: Youngmin Nam Signed-off-by: Kim Gunho --- diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 516b73f2c984..a1b22d1d9fce 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -612,7 +612,7 @@ static noinline_for_stack char *string(char *buf, char *end, const char *s, struct printf_spec spec) { int len = 0; - size_t lim = spec.precision; + int lim = spec.precision; if ((unsigned long)s < PAGE_SIZE) s = "(null)";