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, Jun 05, 2014 at 05:13:49PM +0100, Ben Hutchings wrote:
> 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?

Thanks, I'll fix that up before applying. :)

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux