From: Dmitry Torokhov Date: Thu, 26 Aug 2010 07:14:53 +0000 (-0700) Subject: WMI: fix wmi_gtoa() to actully terminate the string X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e4304d7498c85f6ea798ee5fcb5d3bd3741e74f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git WMI: fix wmi_gtoa() to actully terminate the string Courtesy of sparse... Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 8d59699f28e3..88ce87c74e27 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -220,7 +220,7 @@ static int wmi_gtoa(const char *in, char *out) for (i = 10; i <= 15; i++) out += sprintf(out, "%02X", in[i] & 0xFF); - out = '\0'; + *out = '\0'; return 0; }