[PATCH v3 3/6] UBI: check max_beb_per1024 value in ubi_attach_mtd_dev

Artem Bityutskiy dedekind1 at gmail.com
Mon Aug 20 15:19:27 EDT 2012


On Mon, 2012-08-20 at 18:00 +0200, Richard Genoud wrote:
> @@ -855,6 +858,15 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
>  	struct ubi_device *ubi;
>  	int i, err, ref = 0;
>  
> +	if ((max_beb_per1024 < 0) || (max_beb_per1024 > MAX_MTD_UBI_BEB_LIMIT))
> +		return -EINVAL;

Removed excessive brackets and pushed to linux-ubi, thanks!

-- 
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/20120820/ab3c0263/attachment.sig>


More information about the linux-mtd mailing list