Re: [PATCH] coccinelle: Add patch to use kcalloc instead of kzallocfor array allocations

From: Lars-Peter Clausen
Date: Tue Nov 29 2011 - 14:43:02 EST


On 11/29/2011 07:42 PM, Thomas Meyer wrote:
> Am Freitag, den 25.11.2011, 15:46 +0100 schrieb Lars-Peter Clausen:
>> This patch adds a coccinelle patch to convert array allocations which use
>> kzalloc to kcalloc. The advantage of kcalloc is, that will take care of
>> integer overflows which could result from the multiplication and it is also
>> nicer to read.
>
> Hi Lars,
>
> I did run your kcalloc spatch against 3.2-rc3. are you okay with if I
> send the diffs to the LKML?
>

Sure.

Thanks
- Lars
--
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/