diff options
author | Andy Lutomirski <[email protected]> | 2016-02-15 08:32:35 -0800 |
---|---|---|
committer | Darren Hart <[email protected]> | 2016-03-23 10:05:45 -0700 |
commit | b13de7019c1b67f0c1b987fc9fe82fcc371ba1d2 (patch) | |
tree | c19747a3335a857e84e78d8ff0c3fa956a8876c3 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | a570af4850043260b87fb1b8aa27a4484e648878 (diff) |
dell-wmi: Clean up hotkey table size check
Checking the table for a minimum size of 7 bytes makes no sense: any valid
hotkey table has a size that's a multiple of 4.
Clean this up: replace the hardcoded header length with a sizeof and
change the check to ignore an empty hotkey table. The only behavior
change is that a 7-byte table (which is nonsensical) will now be
treated as absent instead of as valid but empty.
Reported-by: Jean Delvare <[email protected]>
Signed-off-by: Andy Lutomirski <[email protected]>
Acked-by: Pali Rohár <[email protected]>
Signed-off-by: Darren Hart <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions