OSDN Git Service

hid: usbhid: Changes to prevent buffer overflow
authorSriharsha Allenki <sallenki@codeaurora.org>
Thu, 22 Dec 2016 09:27:44 +0000 (14:57 +0530)
committerSriharsha Allenki <sallenki@codeaurora.org>
Fri, 6 Jul 2018 10:52:02 +0000 (16:22 +0530)
commit55fece3439eec26747436d073c13b9bfa21c1f9e
tree2c3d3ab56c8d71e38b999bc1cbbaddb43d8572d4
parent38a0bccad56942e30c91af116767717ce1060607
hid: usbhid: Changes to prevent buffer overflow

Moved some value checks to right positions to prevent
buffer flow, which may be possible before. Previously
these value checks are in an else statement which may
not be executed.

Change-Id: I02dbecd074183581a6bdae6377097bc004bd3d3c
CRs-fixed: 1102936
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
drivers/hid/usbhid/hiddev.c