summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/usb/usb_8dev.c
diff options
context:
space:
mode:
authorMaximilian Schneider2013-07-03 01:43:29 +0200
committerMarc Kleine-Budde2013-07-19 14:55:13 +0200
commit233a26e85f9a72bcd0cdb7a95d1d5abcd052369f (patch)
tree56048ef7b8a0ccac8fac41542259d107d0cc1e2e /drivers/net/can/usb/usb_8dev.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
downloadkernel-qcow2-linux-233a26e85f9a72bcd0cdb7a95d1d5abcd052369f.tar.gz
kernel-qcow2-linux-233a26e85f9a72bcd0cdb7a95d1d5abcd052369f.tar.xz
kernel-qcow2-linux-233a26e85f9a72bcd0cdb7a95d1d5abcd052369f.zip
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>
Diffstat (limited to 'drivers/net/can/usb/usb_8dev.c')
0 files changed, 0 insertions, 0 deletions