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

2014-06-05 Thread Johan Hovold
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 ke

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

2014-06-05 Thread Ben Hutchings
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 it

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

2014-06-05 Thread Johan Hovold
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-uninitial