Re: NULL pointer dereference in at91_udc on start of connection

2012-07-12 Thread Fabio Porcedda
ernel.org; Nicolas Ferre; Ido > Shayevitz; Jean-Christophe PLAGNIOL-VILLARD > Subject: Re: NULL pointer dereference in at91_udc on start of connection > > On Tue, Jul 10, 2012 at 03:54:06PM +0100, Mario Jorge Isidoro wrote: >> I've found that the following change also wor

RE: NULL pointer dereference in at91_udc on start of connection

2012-07-10 Thread Mario Jorge Isidoro
ewior; ba...@ti.com; gre...@linuxfoundation.org; linux-usb@vger.kernel.org; Nicolas Ferre; Ido Shayevitz; Jean-Christophe PLAGNIOL-VILLARD Subject: Re: NULL pointer dereference in at91_udc on start of connection On Tue, Jul 10, 2012 at 03:54:06PM +0100, Mario Jorge Isidoro wrote: > I'v

Re: NULL pointer dereference in at91_udc on start of connection

2012-07-10 Thread Sebastian Andrzej Siewior
On Tue, Jul 10, 2012 at 03:54:06PM +0100, Mario Jorge Isidoro wrote: > I've found that the following change also works, if someone doesn't want to > simply eliminate the check > diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c > index 7687ccd..33a6999 100644 > --- a/drive

RE: NULL pointer dereference in at91_udc on start of connection

2012-07-10 Thread Mario Jorge Isidoro
da [mailto:fabio.porce...@gmail.com] Sent: terça-feira, 10 de Julho de 2012 10:04 To: Mario Jorge Isidoro; Sebastian Andrzej Siewior Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-usb@vger.kernel.org; Nicolas Ferre; Ido Shayevitz; Jean-Christophe PLAGNIOL-VILLARD Subject: Re: NULL pointer dere

Re: NULL pointer dereference in at91_udc on start of connection

2012-07-10 Thread Fabio Porcedda
On Fri, Jul 6, 2012 at 8:06 PM, Mario Jorge Isidoro wrote: > Hi Fabio, > > I tried 3.4 and you were right, it still works fine. > > For the 'struct at91_ep' has no member named 'desc' error I tried commenting > the offending declaration (|| ep->desc) > and it builds without any error. During the

RE: NULL pointer dereference in at91_udc on start of connection

2012-07-06 Thread Mario Jorge Isidoro
-- From: Fabio Porcedda [mailto:fabio.porce...@gmail.com] Sent: sexta-feira, 6 de Julho de 2012 17:10 To: Mario Jorge Isidoro Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-usb@vger.kernel.org; Nicolas Ferre; Ido Shayevitz Subject: Re: NULL pointer dereference in at91_udc on start of connection O

Re: NULL pointer dereference in at91_udc on start of connection

2012-07-06 Thread Fabio Porcedda
On Thu, Jul 5, 2012 at 6:05 PM, Mario Jorge Isidoro wrote: > Hi, > > I'm using a at91sam9260 processor on custom made board based on the > sam9260ek. > With the latest kernels (3.4-rc4 seem to be the last one working well) > whenever I try to connect the usb device port of the at91 processor to a