commit | b510cd4e8a480cbb01ff3175f2e99b11328ff88a | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Tue Apr 19 15:36:16 2011 -0700 |
committer | Android Git Automerger <android-git-automerger@android.com> | Tue Apr 19 15:36:16 2011 -0700 |
tree | 8800e76ca32d1e9948f4cb8320693a5230fc8143 | |
parent | 46770e6ea0876797b9f6d93e838f3d73dc91917d [diff] | |
parent | 77992e713ceac377ed226b555685f99fcfeb2c14 [diff] |
am 77992e71: vold: Enable the SO_PASSCRED socket option * commit '77992e713ceac377ed226b555685f99fcfeb2c14': vold: Enable the SO_PASSCRED socket option
diff --git a/DirectVolume.cpp b/DirectVolume.cpp index 3191cc7..54da964 100644 --- a/DirectVolume.cpp +++ b/DirectVolume.cpp
@@ -186,6 +186,11 @@ part_num = 1; } + if (part_num > MAX_PARTITIONS || part_num < 1) { + SLOGW("Invalid 'PARTN' value"); + part_num = 1; + } + if (part_num > mDiskNumParts) { mDiskNumParts = part_num; }