diff options
| author | Nick Kralevich <nnk@google.com> | 2011-04-29 16:07:45 -0700 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2011-04-29 16:07:45 -0700 |
| commit | cc8e96c8dccea1e8041db3146d389175582d3890 (patch) | |
| tree | 98de0952d343a23519db3a7918bff8b59cabf74b /DirectVolume.cpp | |
| parent | 8bd9b3fcc65b50155b793495a6debf2263ed7d70 (diff) | |
| download | android_system_vold-cc8e96c8dccea1e8041db3146d389175582d3890.tar.gz android_system_vold-cc8e96c8dccea1e8041db3146d389175582d3890.tar.bz2 android_system_vold-cc8e96c8dccea1e8041db3146d389175582d3890.zip | |
DirectVolume: don't continue on invalid PARTN value
Change-Id: I1e434c5b47b40fabaf1e702d7f2e43a88c0497dc
Diffstat (limited to 'DirectVolume.cpp')
| -rw-r--r-- | DirectVolume.cpp | 4 |
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) { |
