lkml.org 
[lkml]   [2014]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] usb: use kcalloc instead of kzalloc
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@gmail.com>

As Clemens pointed out, integer overflows cannot occur here. This
patch is not needed.

Alan Stern



\
 
 \ /
  Last update: 2014-08-19 17:21    [W:0.025 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site