commit | 233a26e85f9a72bcd0cdb7a95d1d5abcd052369f | [log] [tgz] |
---|---|---|
author | Maximilian Schneider <max@schneidersoft.net> | Tue Jul 02 23:43:29 2013 +0000 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Fri Jul 19 14:55:13 2013 +0200 |
tree | 56048ef7b8a0ccac8fac41542259d107d0cc1e2e | |
parent | ecb2cf1a6b63825a258ff4fe0d7f3070fbe4676b [diff] |
net: can: esd_usb2: check index of array before accessing The esd_usb2_read_bulk_callback() function is parsing the data that comes from the USB CAN adapter. One datum is used as an index to access the dev->nets[] array. This patch adds the missing bounds checking. Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu> Signed-off-by: Maximilian Schneider <max@schneidersoft.net> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>