[PATCH 4/4] UBI: replace MTD_UBI_BEB_LIMIT with user-space parameter

Richard Genoud richard.genoud at gmail.com
Mon Aug 20 02:55:48 EDT 2012


Hi Artem,
2012/8/19 Artem Bityutskiy <dedekind1 at gmail.com>:
> Yeah, I wanted to make it 1..256 but forgot, will do now. 0..256 would
> need some more work to avoid division by 0.
Division by 0 is handled in the get_bad_peb_limit() function, I don't
see another dangerous place.
So, I think that we can change back the range to 0..256.
(and if we want to be coherent with user-space, it should be 0..255,
as the range is coded with an u8)

Richard.

-- 
for me, ck means con kolivas and not calvin klein... does it mean I'm a geek ?



More information about the linux-mtd mailing list