HID: picolcd: sanity check report size in raw_event() callback
authorJiri Kosina <[email protected]>
Wed, 27 Aug 2014 07:13:15 +0000 (09:13 +0200)
committerJiri Kosina <[email protected]>
Wed, 27 Aug 2014 07:14:39 +0000 (09:14 +0200)
commit844817e47eef14141cf59b8d5ac08dd11c0a9189
tree7b4fbe046727d187383cd8497bf7b14ce1139bb4
parentc54def7bd64d7c0b6993336abcffb8444795bf38
HID: picolcd: sanity check report size in raw_event() callback

The report passed to us from transport driver could potentially be
arbitrarily large, therefore we better sanity-check it so that raw_data
that we hold in picolcd_pending structure are always kept within proper
bounds.

Cc: [email protected]
Reported-by: Steven Vittitoe <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-picolcd_core.c