diff options
author | Aaron Ma <aaron.ma@canonical.com> | 2018-01-08 03:41:41 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-02-16 13:30:56 +0100 |
commit | 6de0b13cc0b4ba10e98a9263d7a83b940720b77a (patch) | |
tree | df6ee2f81950bfddbf9b3719692a9fcfa2f82275 /drivers/hid/hid-rmi.c | |
parent | HID: i2c-hid: fix size check and type usage (diff) | |
download | linux-6de0b13cc0b4ba10e98a9263d7a83b940720b77a.tar.xz linux-6de0b13cc0b4ba10e98a9263d7a83b940720b77a.zip |
HID: core: Fix size as type u32
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>
Diffstat (limited to 'drivers/hid/hid-rmi.c')
0 files changed, 0 insertions, 0 deletions