]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
HID: alps: pass correct sizes to hid_hw_raw_request()
authorJiri Kosina <jkosina@suse.cz>
Mon, 20 Jun 2016 09:16:18 +0000 (11:16 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 20 Jun 2016 09:16:18 +0000 (11:16 +0200)
commit63b3a7d0f933ebf25961e602c2eb11d658fef912
treee4284b2b56b5466ec70bb6009b33129c56d1e0ce
parent41f61ecc501ca970ae8d9955c57405dc4abfab5a
HID: alps: pass correct sizes to hid_hw_raw_request()

Calculating size of the report as sizeof(pointer) always passess the length
corresponding to the pointer type, not the underlying data report.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-alps.c