Re: [PATCH] fuse: Use kcalloc instead of kzalloc to allocate array

From: Miklos Szeredi
Date: Tue Dec 06 2011 - 09:02:33 EST


On Tue, Nov 29, 2011 at 10:08 PM, Thomas Meyer <thomas@xxxxxxxx> wrote:
> The advantage of kcalloc is, that will prevent integer overflows which could
> result from the multiplication of number of elements and size and it is also
> a bit nicer to read.
>
> The semantic patch that makes this change is available
> in https://lkml.org/lkml/2011/11/25/107
>
> Signed-off-by: Thomas Meyer <thomas@xxxxxxxx>

Thanks, applied.

Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/