Messages in this thread | | | Subject | Re: [PATCH 2/2] UBI: add ioctl for max_beb_per1024 | From | Artem Bityutskiy <> | Date | Fri, 17 Aug 2012 11:28:39 +0300 |
| |
On Thu, 2012-08-16 at 16:52 +0200, Richard Genoud wrote: > mutex_lock(&ubi_devices_mutex); > err = ubi_attach_mtd_dev(mtd, req.ubi_num, req.vid_hdr_offset, > - MTD_UBI_DEFAULT_BEB_LIMIT); > + req.max_beb_per1024);
Do not forget to explicitely validate 'req.max_beb_per1024' valuse in 'ubi_attach_mtd_dev()', as we do for other parameters.
-- Best Regards, Artem Bityutskiy [unhandled content-type:application/pgp-signature] | |