summaryrefslogtreecommitdiff
path: root/drivers/usb/phy/am35x-phy-control.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-06-05 18:05:52 +0400
committerJohan Hovold <johan@kernel.org>2014-06-23 14:27:41 +0400
commitaea1ae8760314e072bf1b773521e9de5d5dda10d (patch)
treef507dc99db41054ead468c081c58427dff8080d2 /drivers/usb/phy/am35x-phy-control.h
parent53066e3ad5df57ec11795dd9130f85acad064e8c (diff)
downloadlinux-aea1ae8760314e072bf1b773521e9de5d5dda10d.tar.xz
USB: ftdi_sio: fix null deref at port probe
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 <mremski@mutualink.net> Tested-by: Mike Remski <mremski@mutualink.net> Cc: <stable@vger.kernel.org> # 2.6.31 Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/phy/am35x-phy-control.h')
0 files changed, 0 insertions, 0 deletions