Messages in this thread | | | From | Richard Genoud <> | Date | Mon, 20 Aug 2012 08:55:48 +0200 | Subject | Re: [PATCH 4/4] UBI: replace MTD_UBI_BEB_LIMIT with user-space parameter |
| |
Hi Artem, 2012/8/19 Artem Bityutskiy <dedekind1@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 ?
| |