From 1c55ddb75833b6bb6b7ebafd0fdf4f47596a4505 Mon Sep 17 00:00:00 2001 From: android-merger Date: Thu, 7 Jul 2011 14:54:24 -0700 Subject: [PATCH] Revert "add bounds checking for mPartMinors[]" This reverts commit f3d3ce5e53ab7928f4c292c183c417a1bd051151. --- DirectVolume.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/DirectVolume.cpp b/DirectVolume.cpp index 0ac1a0c..ce5b892 100644 --- a/DirectVolume.cpp +++ b/DirectVolume.cpp @@ -186,11 +186,6 @@ void DirectVolume::handlePartitionAdded(const char *devpath, NetlinkEvent *evt) 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; }