Re: [PATCH v10 8/8] usb: chipidea: imx: fix the error that using uninitialized pointer

2013-02-27 Thread Peter Chen
On Wed, Feb 27, 2013 at 10:07:15PM +0200, Alexander Shishkin wrote: >On Feb 27, 2013 8:34 AM, "Peter Chen" wrote: >> >> If the core's probe fails, the platform layer may not get core's > >I think the question we should be asking ourselves here is, why does it >fail? I find th

Re: [PATCH v10 8/8] usb: chipidea: imx: fix the error that using uninitialized pointer

2013-02-27 Thread Peter Chen
On Wed, Feb 27, 2013 at 04:39:48PM +0400, Sergei Shtylyov wrote: > Hello. > > On 27-02-2013 10:33, Peter Chen wrote: > > >If the core's probe fails, the platform layer may not get core's > >private data, if the platform tries to use struct ci13xxx, it will > >use uninitialized pointer. Besides, i

Re: [PATCH v10 8/8] usb: chipidea: imx: fix the error that using uninitialized pointer

2013-02-27 Thread Sergei Shtylyov
Hello. On 27-02-2013 10:33, Peter Chen wrote: If the core's probe fails, the platform layer may not get core's private data, if the platform tries to use struct ci13xxx, it will use uninitialized pointer. Besides, if the core's probe fails, the platform layer should know it, and let its probe f

[PATCH v10 8/8] usb: chipidea: imx: fix the error that using uninitialized pointer

2013-02-26 Thread Peter Chen
If the core's probe fails, the platform layer may not get core's private data, if the platform tries to use struct ci13xxx, it will use uninitialized pointer. Besides, if the core's probe fails, the platform layer should know it, and let its probe fail too. Signed-off-by: Peter Chen --- drivers/