diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-12-25 17:15:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-09 11:19:46 -0800 |
commit | 94f341db3dd080851f918da37e84659ef760da26 (patch) | |
tree | 1efb67713bbe6aa8f2dd48367e5166256a7f5523 /Documentation/c2port.txt | |
parent | f06da264cfb0f9444d41ca247213e419f90aa72a (diff) |
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 'Documentation/c2port.txt')
0 files changed, 0 insertions, 0 deletions