Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e79189cc authored by Arumuga Durai A's avatar Arumuga Durai A
Browse files

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: default avatarArumuga Durai A <cadurai@codeaurora.org>
parent e5c91c68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment