Re: [PATCH 2/2] UBI: add ioctl for max_beb_per1024

From: Artem Bityutskiy
Date: Fri Aug 17 2012 - 04:23:51 EST


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

Attachment: signature.asc
Description: This is a digitally signed message part