Re: [PATCH 1/5] USB: ftdi_sio: fix null deref at port probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2014-06-05 at 16:05 +0200, Johan Hovold wrote:
> 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@xxxxxxxxxxxxx>
> Tested-by: Mike Remski <mremski@xxxxxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx>	# 2.3.61
[...]

Or maybe 2.6.31?

Ben.

-- 
Ben Hutchings
I say we take off; nuke the site from orbit.  It's the only way to be sure.

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]