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

Dan Carpenter
2012-11-22T12:09:50Z

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