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

Commit 17fa4adb authored by Arumuga Durai A's avatar Arumuga Durai A
Browse files

USB: android: Fix rmnet_gport_setup error path handling on sigkill



rmnet_gport_setup might fail if userspace killed adbd while
usb_add_config was executed in its context. This results in
alloc_workqueue failure followed by rmnet_gport_setup bailing
out. Next time when adbd is started, gport_setup doesnt happen
(due to rmnet_initialized) and rmnet bind_config fails. Fix
this by setting rmnet_initialized only when rmnet_gport_setup
is successful and also perform cleanup when gport_setup fails.

CRs-Fixed: 1021758
Change-Id: Ia0df36f734ba2e2ad54dec6e93d80593c4813447
Signed-off-by: default avatarArumuga Durai A <cadurai@codeaurora.org>
parent 0c3a23a4
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