aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAdrian Salido <[email protected]>2017-09-08 17:55:27 +0000
committerJiri Kosina <[email protected]>2017-09-13 16:16:40 +0000
commit8320caeeffdefec3b58b9d4a7ed8e1079492fe7b (patch)
treedb912024c509ba7ecad44eae01393f9c99c2d4d8 /net/switchdev/switchdev.c
parentHID: rmi: Make sure the HID device is opened on resume (diff)
downloadkernel-8320caeeffdefec3b58b9d4a7ed8e1079492fe7b.tar.gz
kernel-8320caeeffdefec3b58b9d4a7ed8e1079492fe7b.zip
HID: i2c-hid: allocate hid buffers for real worst case
The buffer allocation is not currently accounting for an extra byte for the report id. This can cause an out of bounds access in function i2c_hid_set_or_send_report() with reportID > 15. Cc: [email protected] Signed-off-by: Adrian Salido <[email protected]> Reviewed-by: Benson Leung <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions