am 7a013f96
: Fix vold coredump when enable_ums cmd comes without media inserted.
Merge commit '7a013f967e6b6fdb3e7e2d46455cdf235ab4472e' into eclair-plus-aosp * commit '7a013f967e6b6fdb3e7e2d46455cdf235ab4472e': Fix vold coredump when enable_ums cmd comes without media inserted.
This commit is contained in:
commit
1575202b80
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue