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

Commit 7a013f96 authored by David Ding's avatar David Ding Committed by San Mehat
Browse files

Fix vold coredump when enable_ums cmd comes without media inserted.

parent 3cd5b66b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -460,7 +460,7 @@ int volmgr_enable_ums(boolean enable)
                pthread_mutex_lock(&v->lock);
                if (v->state == volstate_mounted)
                    volmgr_send_eject_request(v);
                else if (v->state == volstate_ums) {
                else if (v->state == volstate_ums || v->state == volstate_nomedia) {
                    pthread_mutex_unlock(&v->lock);
                    goto next_vol;
                }