mtd: part: Remove partition overlap checks
authorDan Ehrenberg <dehrenberg@chromium.org>
Thu, 2 Apr 2015 22:15:12 +0000 (15:15 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 6 Apr 2015 00:44:03 +0000 (17:44 -0700)
commit3a434f66e6dab645d74a59c95651cdbe16497a50
treef5e2436ddb07c5275abc029db9ff82f98914a6da
parenta62c24d75529118d10c45350c3b75715d52ff574
mtd: part: Remove partition overlap checks

This patch makes MTD dynamic partitioning more flexible by removing
overlap checks for dynamic partitions. I don't see any  particular
reason why overlapping dynamic partitions should be prohibited while
static partitions are allowed to overlap freely.

The checks previously had an off-by-one error, where 'end' should be
one less than what it is currently set at, and adding partitions out of
increasing order will fail. Disabling the checks resolves this issue.

Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdpart.c