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

Commit 8ee6da0e authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa
Browse files

Revert "USB: android: Increment disable_depth on usb_add_config() failure"



Commit "60e4386: USB: android: Increment disable_depth on usb_add_config()
failure" is added to avoid crash by incrementing disable_depth counter in
case usb_add_config() fails due to fs driver not ready. Currently fs
driver returns error if stringtabs are not populated by the time
functionfs_bindconfig() is called as part of android_enable(). If
disable_depth counter is incremented, when fs driver is ready and calls
functionfs_ready_callback() to enable composition, it fails due to
disable_depth() counter mismatch. Hence revert the change so that it is
not incremented in case of failure and USB composition enablement works,
once fs driver is ready after stringtabs are populated.

Change-Id: Iec6eecf4b7ea9e84648c0f3f960a16a0f9c67955
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 0df741f7
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