UBI: check max_beb_per1024 value in ubi_attach_mtd_dev
authorRichard Genoud <richard.genoud@gmail.com>
Mon, 20 Aug 2012 16:00:13 +0000 (18:00 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Sep 2012 06:39:01 +0000 (09:39 +0300)
commitd2f588f9340ed23dfb6cda08b8a1917ef3e8527c
tree162ea3e7fb652a79cf439f65b791a6287a9e4ce5
parent256334c3191af9d9e520082db9beb75ff801d86c
UBI: check max_beb_per1024 value in ubi_attach_mtd_dev

max_beb_per1024 shouldn't be negative, and a 0 value will be treated as
the default value. For the upper bound, 768/1024 should be enough.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/build.c