Re: [PATCH 1/1] usb: gadget: composite: fix configuration NULL pointer dereference problem

2015-07-16 Thread Roger Quadros
Peter, On 16/07/15 11:04, Peter Chen wrote: At some unexpected cases, the host may send the non-core control request before the configruation has been established, so the cdev-config is still NULL, then below NULL pointer dereference issue problem will occur. Although the udc driver can

[PATCH 1/1] usb: gadget: composite: fix configuration NULL pointer dereference problem

2015-07-16 Thread Peter Chen
At some unexpected cases, the host may send the non-core control request before the configruation has been established, so the cdev-config is still NULL, then below NULL pointer dereference issue problem will occur. Although the udc driver can handle non-core control request beforhand, we still

Re: [PATCH 1/1] usb: gadget: composite: fix configuration NULL pointer dereference problem

2015-07-16 Thread Roger Quadros
On 16/07/15 13:31, Roger Quadros wrote: Peter, On 16/07/15 11:04, Peter Chen wrote: At some unexpected cases, the host may send the non-core control request before the configruation has been established, so the cdev-config is still NULL, then below NULL pointer dereference issue problem

Re: [PATCH 1/1] usb: gadget: composite: fix configuration NULL pointer dereference problem

2015-07-16 Thread Li Jun
On Thu, Jul 16, 2015 at 04:04:28PM +0800, Peter Chen wrote: At some unexpected cases, the host may send the non-core control request before the configruation has been established, so the cdev-config is still NULL, then below NULL pointer dereference issue problem will occur. Although the udc

RE: [PATCH 1/1] usb: gadget: composite: fix configuration NULL pointer dereference problem

2015-07-16 Thread Peter Chen
On Thu, Jul 16, 2015 at 04:04:28PM +0800, Peter Chen wrote: At some unexpected cases, the host may send the non-core control request before the configruation has been established, so the cdev-config is still NULL, then below NULL pointer dereference issue problem will occur. Although