From: Johan Hovold Date: Wed, 27 Aug 2014 09:55:18 +0000 (+0200) Subject: USB: serial: fix potential stack buffer overflow X-Git-Tag: omap-fixes-against-v3.17-rc3~24^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d979e9f9ecab04c1ecca741370e30a8a498893f5;p=pandora-kernel.git USB: serial: fix potential stack buffer overflow Make sure to verify the maximum number of endpoints per type to avoid writing beyond the end of a stack-allocated array. The current usb-serial implementation is limited to eight ports per interface but failed to verify that the number of endpoints of a certain type reported by a device did not exceed this limit. Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed