aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2016-02-15 11:32:35 -0500
committerDarren Hart <dvhart@linux.intel.com>2016-03-23 13:05:45 -0400
commitb13de7019c1b67f0c1b987fc9fe82fcc371ba1d2 (patch)
treec19747a3335a857e84e78d8ff0c3fa956a8876c3 /tools/perf/scripts/python/call-graph-from-postgresql.py
parenta570af4850043260b87fb1b8aa27a4484e648878 (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 <jdelvare@suse.de> Signed-off-by: Andy Lutomirski <luto@kernel.org> Acked-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions