diff options
-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) { |