USB: android: Fix gsmd_setup() error path cleanup on sigkill
gsmd_setup might fail if userspace kills adbd while
usb_add_config was executed in its context. This results
in alloc_workqueue failure followed by gport_setup bailing
out without proper cleanup. Due to this next time when
adbd starts no_smd_ports exceeds the allow limit so serial
function bind_config fails. Fix this by perform cleanup when
gport_setup fails.
CRs-Fixed: 1098860
Change-Id: Ic54a588b5232029b3598f38645afdbe70b70f927
Signed-off-by:
Arumuga Durai A <cadurai@codeaurora.org>
Loading
Please register or sign in to comment