lkml.org 
[lkml]   [2012]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] UBI: add ioctl for max_beb_per1024
From
Date
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]
\
 
 \ /
  Last update: 2012-08-17 11:01    [W:0.125 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site