diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-12-25 14:15:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-09 19:19:46 (GMT) |
commit | 94f341db3dd080851f918da37e84659ef760da26 (patch) | |
tree | 1efb67713bbe6aa8f2dd48367e5166256a7f5523 /mm | |
parent | f06da264cfb0f9444d41ca247213e419f90aa72a (diff) | |
download | linux-fsl-qoriq-94f341db3dd080851f918da37e84659ef760da26.tar.xz |
USB: fsl_qe_udc: Fix oops on QE UDC probe failure
In case of probing errors the driver kfrees the udc_controller, but it
doesn't set the pointer to NULL.
When usb_gadget_register_driver is called, it checks for udc_controller
!= NULL, the check passes and the driver accesses nonexistent memory.
Fix this by setting udc_controller to NULL in case of errors.
While at it, also implement irq_of_parse_and_map()'s failure and cleanup
cases.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions