summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAaron Ma <aaron.ma@canonical.com>2018-01-08 10:41:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-24 09:32:07 +0200
commit60f6c860c25892b4a1c8791cec0427af0d96bf86 (patch)
tree9a04ea9d6b17897362a7ae46d5301b02397cb274 /tools/perf/scripts/python
parent8d7610e122885386c4004dd0b5aca3e8928a1e50 (diff)
HID: core: Fix size as type u32
commit 6de0b13cc0b4ba10e98a9263d7a83b940720b77a upstream. When size is negative, calling memset will make segment fault. Declare the size as type u32 to keep memset safe. size in struct hid_report is unsigned, fix return type of hid_report_len to u32. Cc: stable@vger.kernel.org Signed-off-by: Aaron Ma <aaron.ma@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions