[patch] UBIFS: use kmalloc_array() in recomp_data_node()

Dan Carpenter dan.carpenter at oracle.com
Thu Nov 22 07:09:50 EST 2012


On Thu, Nov 22, 2012 at 01:29:33PM +0200, Artem Bityutskiy wrote:
> On Thu, 2012-11-22 at 13:26 +0200, Artem Bityutskiy wrote:
> > Did you consider kcalloc() ? Just like malloc() / calloc() libc
> > functions? 
> 
> Ah, there is kcaoloc already, so I guess then we could just put the
> overflow check there instead?

Yep.  That's there already.

regards,
dan carpenter




More information about the linux-mtd mailing list