]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdca4797457024e6eb46be246a8d48aedaee6d773
treef5e2436ddb07c5275abc029db9ff82f98914a6da
parent4e240f23983f93abd1f909faee0179cb3a0842c8
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