diff options
| author | myfluxi <linflux@arcor.de> | 2015-02-13 00:50:48 +0100 |
|---|---|---|
| committer | myfluxi <linflux@arcor.de> | 2015-02-14 01:16:44 +0100 |
| commit | 0274d51cce3f14c22ae2750f2320c88efac4694c (patch) | |
| tree | 93040519ba62edbc4359c04c51030032be840a11 | |
| parent | 1951d591091a22166cc6b0aa8d8f8d44c9b5427e (diff) | |
Vold: Reset mPartMinors array when handling disk removallp5.0
An improper state ultimately results in a busy device on the
next attempt to connect a removable disk.
Fixes: CYAN-6293
Change-Id: If1f0f10373c3e3d87425965d7ff80dc230093b0d
| -rw-r--r-- | DirectVolume.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DirectVolume.cpp b/DirectVolume.cpp index 8d39bf9..9e0bdeb 100644 --- a/DirectVolume.cpp +++ b/DirectVolume.cpp @@ -385,6 +385,9 @@ void DirectVolume::handleDiskRemoved(const char * /*devpath*/, } } + for (int i = 0; i < MAX_PARTITIONS; i++) + mPartMinors[i] = -1; + setState(Volume::State_NoMedia); } |
