commit | 717adfdaf14704fd3ec7fa2c04520c0723247eac | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Mon Jul 02 16:59:37 2018 -0700 |
committer | Jiri Kosina <jkosina@suse.cz> | Tue Jul 03 11:54:40 2018 +0200 |
tree | 909cbc9aaa97298c6110292cfc06a883174fc611 | |
parent | 8f732850df1b2b4d8d719f7e606dfb3050e7ea11 [diff] |
HID: debug: check length before copy_to_user() If our length is greater than the size of the buffer, we overflow the buffer Cc: stable@vger.kernel.org Signed-off-by: Daniel Rosenberg <drosen@google.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>