diff options
| author | 2015-03-03 10:52:09 +0100 | |
|---|---|---|
| committer | 2015-03-10 15:33:35 -0500 | |
| commit | 44b316525986252bb95d356419fc9e75f0532112 (patch) | |
| tree | d7cebd8bc5131a390a584ef025ed23372091a9cb /scripts/Makefile.thinlto | |
| parent | usb: gadget: printer: revert usb_add_function() effect in error recovery (diff) | |
usb: gadget: printer: add missing error handling
If cdev_add() in printer_bind_config() fails, care is taken to
reverse the effects of initializations completed until the fail
happens. But if printer_req_alloc() fails, it is just one of the
two lists that is cleaned up while the effects of cdev_add()
and device_create() are not reverted.
This patch changes error handling so that at least as much cleanup is done
as when a failure happens before printer_req_alloc() invocations.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
