commit | 4b43f4139e4054bc06a1f92be3018ebb6326f73f | [log] [tgz] |
---|---|---|
author | Aaron Ma <aaron.ma@canonical.com> | Mon Jan 08 10:41:41 2018 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 24 09:34:12 2018 +0200 |
tree | 8a3d8ed65ae02e788a5345c57189f699552d8c7d | |
parent | 10ab7c947d4921b962c7c2a6bffa2486d0cd127d [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>