diff options
author | Ksenija Stanojevic <ksenija.stanojevic@gmail.com> | 2016-01-03 19:43:27 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-29 06:23:38 (GMT) |
commit | 52ebf93f367f3b749a696dc77ac2e42c186eb924 (patch) | |
tree | 0c9f10d13a1d95bf5afc7a79e30fa9720498c206 | |
parent | d12f27e8b2abc1efe9156ff403f4fa6eae4268df (diff) | |
download | linux-52ebf93f367f3b749a696dc77ac2e42c186eb924.tar.xz |
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 <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/panel/panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index e9641ea..fcfcda7 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 == '-') { |