diff options
author | Will Newton <will.newton@gmail.com> | 2008-08-12 16:39:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-17 23:41:07 +0200 |
commit | 23d7cd040e1f43113da3e8763becf576ab86b39a (patch) | |
tree | d4f98257a6a379dfcf53d814aef79cdebe1cd340 /drivers/atm | |
parent | fsl_usb2_udc: Add a wmb before priming endpoint. (diff) | |
download | linux-23d7cd040e1f43113da3e8763becf576ab86b39a.tar.xz linux-23d7cd040e1f43113da3e8763becf576ab86b39a.zip |
fsl_usb2_udc: Fix oops on probe failure.
In some circumstances when fsl_udc_probe fails udc_controller is freed but
the pointer remains non-NULL. fsl_udc_remove will then try and teardown
the partly initialized and freed controller structure resulting in an oops.
This patch ensures udc_controller is either NULL or fully initialized after
fsl_udc_probe.
Signed-off-by: Will Newton <will.newton@gmail.com>
Acked-by: Li Yang <leoli@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/atm')
0 files changed, 0 insertions, 0 deletions