commit | cc8e96c8dccea1e8041db3146d389175582d3890 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Fri Apr 29 16:07:45 2011 -0700 |
committer | Nick Kralevich <nnk@google.com> | Fri Apr 29 16:07:45 2011 -0700 |
tree | 98de0952d343a23519db3a7918bff8b59cabf74b | |
parent | 8bd9b3fcc65b50155b793495a6debf2263ed7d70 [diff] [blame] |
DirectVolume: don't continue on invalid PARTN value Change-Id: I1e434c5b47b40fabaf1e702d7f2e43a88c0497dc
diff --git a/DirectVolume.cpp b/DirectVolume.cpp index 54da964..2ca0e72 100644 --- a/DirectVolume.cpp +++ b/DirectVolume.cpp
@@ -187,8 +187,8 @@ } if (part_num > MAX_PARTITIONS || part_num < 1) { - SLOGW("Invalid 'PARTN' value"); - part_num = 1; + SLOGE("Invalid 'PARTN' value"); + return; } if (part_num > mDiskNumParts) {