mtd: mtdoops: limit the maximum mtd partition size
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Tue, 3 Nov 2009 06:08:41 +0000 (08:08 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 12:02:02 +0000 (12:02 +0000)
commit1114e3d00f539ecb7a8415663f2a47a80e00a537
tree34f384aa267d9e31eee029bf9061cf148907ea7d
parentbe95745f01677245a061a8f51473ef5ec8ad008e
mtd: mtdoops: limit the maximum mtd partition size

Make the maximum mtdoops partition size to be 8MiB. Indeed, it does
not make sense to use anything larger than that anyway. This limit
makes it possible to catch stupid mistakes where the user gives e.g.,
a rootfs partition to mtdoops (which will happily erase it).

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdoops.c