From: Maximilian Schneider Date: Tue, 2 Jul 2013 23:43:29 +0000 (+0000) Subject: net: can: esd_usb2: check index of array before accessing X-Git-Tag: v3.11-rc4~22^2~37^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=233a26e85f9a72bcd0cdb7a95d1d5abcd052369f;p=pandora-kernel.git 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 Signed-off-by: Maximilian Schneider Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed