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

- From: Peter Chen \<hidden\>
- Date: 2013-02-28 03:34:13 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2013/02/8636143
- Thread: https://ratatoskr.run/linux-arm-kernel/2013/02/8636143/t.md

```text
On Wed, Feb 27, 2013 at 10:07:15PM +0200, Alexander Shishkin wrote:
>    On Feb 27, 2013 8:34 AM, "Peter Chen" [ref] 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 this problem just make core probe fails as set dr_mode = "peripheral"
with host-only controller, we should consider such user mistake.

I can move vbus handling to core code as it is core thing to avoid this bug.
But what's your suggestion of platform layer handling when core's probe
fails?

http://marc.info/?l=linux-usb&m=136202110302555&w=2

-- 

Best Regards,
Peter Chen
```
