mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 22:08:33 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d12f27e8b2
commit
52ebf93f36
@@ -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 == '-') {
|
||||
|
||||
Reference in New Issue
Block a user