From: Johan Hovold Date: Thu, 5 Jun 2014 14:05:52 +0000 (+0200) Subject: USB: ftdi_sio: fix null deref at port probe X-Git-Tag: v3.2.64~324 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4518ea13630be9dee5a1721e011ce61191e0d9e;p=pandora-kernel.git USB: ftdi_sio: fix null deref at port probe commit aea1ae8760314e072bf1b773521e9de5d5dda10d upstream. Fix NULL-pointer dereference when probing an interface with no endpoints. These devices have two bulk endpoints per interface, but this avoids crashing the kernel if a user forces a non-FTDI device to be probed. Note that the iterator variable was made unsigned in order to avoid a maybe-uninitialized compiler warning for ep_desc after the loop. Fixes: 895f28badce9 ("USB: ftdi_sio: fix hi-speed device packet size calculation") Reported-by: Mike Remski Tested-by: Mike Remski Signed-off-by: Johan Hovold Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed