summaryrefslogtreecommitdiffstats
path: root/DirectVolume.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2011-04-29 16:07:45 -0700
committerNick Kralevich <nnk@google.com>2011-04-29 16:07:45 -0700
commitcc8e96c8dccea1e8041db3146d389175582d3890 (patch)
tree98de0952d343a23519db3a7918bff8b59cabf74b /DirectVolume.cpp
parent8bd9b3fcc65b50155b793495a6debf2263ed7d70 (diff)
downloadsystem_vold-cc8e96c8dccea1e8041db3146d389175582d3890.tar.gz
system_vold-cc8e96c8dccea1e8041db3146d389175582d3890.tar.bz2
system_vold-cc8e96c8dccea1e8041db3146d389175582d3890.zip
DirectVolume: don't continue on invalid PARTN value
Change-Id: I1e434c5b47b40fabaf1e702d7f2e43a88c0497dc
Diffstat (limited to 'DirectVolume.cpp')
-rw-r--r--DirectVolume.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/DirectVolume.cpp b/DirectVolume.cpp
index 54da964..2ca0e72 100644
--- a/DirectVolume.cpp
+++ b/DirectVolume.cpp
@@ -187,8 +187,8 @@ void DirectVolume::handlePartitionAdded(const char *devpath, NetlinkEvent *evt)
}
if (part_num > MAX_PARTITIONS || part_num < 1) {
- SLOGW("Invalid 'PARTN' value");
- part_num = 1;
+ SLOGE("Invalid 'PARTN' value");
+ return;
}
if (part_num > mDiskNumParts) {