]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7343c0a02647c0d3d47a8fd026e78c0c79ce369
tree34f384aa267d9e31eee029bf9061cf148907ea7d
parent628fcab27eba56649af09473ac4bb47b40d6e869
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