[PATCH 2/2] UBI: add ioctl for max_beb_per1024
Artem Bityutskiy
dedekind1 at gmail.com
Fri Aug 17 04:28:39 EDT 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120817/8c374ac2/attachment.sig>
More information about the linux-mtd
mailing list