OSDN Git Service
(root)
/
android-x86
/
system-vold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64382de
)
vold: fix an offset one bug that makes partition 4 unusable
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Wed, 17 Nov 2010 10:53:09 +0000
(18:53 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Wed, 17 Nov 2010 10:53:09 +0000
(18:53 +0800)
Change-Id: Ic8e18e6191ad7ee33162e36060b57a6802cf0883
DirectVolume.cpp
patch
|
blob
|
history
diff --git
a/DirectVolume.cpp
b/DirectVolume.cpp
index
02c83d1
..
0d781d0
100644
(file)
--- a/
DirectVolume.cpp
+++ b/
DirectVolume.cpp
@@
-189,8
+189,8
@@
void DirectVolume::handlePartitionAdded(const char *devpath, NetlinkEvent *evt)
#ifdef PARTITION_DEBUG
SLOGD("Dv:partAdd: part_num = %d, minor = %d\n", part_num, minor);
#endif
- if (part_num >
=
MAX_PARTITIONS) {
- SLOGE("Dv:partAdd: ignoring part_num = %d (max: %d)\n", part_num, MAX_PARTITIONS
-1
);
+ if (part_num > MAX_PARTITIONS) {
+ SLOGE("Dv:partAdd: ignoring part_num = %d (max: %d)\n", part_num, MAX_PARTITIONS);
} else {
mPartMinors[part_num -1] = minor;
}