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

Commit cc28aa85 authored by Neill Kapron's avatar Neill Kapron Committed by Android Build Coastguard Worker
Browse files

USB: MtpServer: close MtpFfsHandle before delete



In certain cases, the MtpServer destructor deleting the MtpFfsHandle
causes a crash with SIGABRT in the MtpFfsHandle destructor. Try closing
the handle prior to deleting to perform cleanup.

Test: manual, atest mtp_ffs_handle_test
Bug: 365686062
Flag: EXEMPT bugfix
Signed-off-by: default avatarNeill Kapron <nkapron@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:da2fa312c3d53cf96b31c346f56a3ba7a8f99b75)
Merged-In: I565a32594f5eb70efebd460f03757c57daf4b71a
Change-Id: I565a32594f5eb70efebd460f03757c57daf4b71a
parent 4919ca76
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