Re: [PATCH] usb: use kcalloc instead of kzalloc
From: Alan Stern
Date: Tue Aug 19 2014 - 10:41:49 EST
On Tue, 19 Aug 2014, Arjun Sreedharan wrote:
> kcalloc has protection from integer overflows
> which could arise from the multiplication of
> number of elements and size.
>
> Signed-off-by: Arjun Sreedharan <arjun024@xxxxxxxxx>
As Clemens pointed out, integer overflows cannot occur here. This
patch is not needed.
Alan Stern
--
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/