From: Ksenija Stanojevic Date: Sun, 3 Jan 2016 19:43:27 +0000 (+0100) Subject: Staging: panel: Reduce value range for *name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52ebf93f367f3b749a696dc77ac2e42c186eb924;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: panel: Reduce value range for *name out is 0-9 so it's too much for om, therefore reduce value range for *name from '0'-'9' to '0'-'7'. Signed-off-by: Ksenija Stanojevic Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index e9641ea7e477..fcfcda7ff1f4 100644 --- a/drivers/staging/panel/panel.c +++ b/drivers/staging/panel/panel.c @@ -2065,7 +2065,7 @@ static u8 input_name2mask(const char *name, __u64 *mask, __u64 *value, im |= BIT(in); name++; - if (isdigit(*name)) { + if (*name >= '0' && *name <= '7') { out = *name - '0'; om |= BIT(out); } else if (*name == '-') {