[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <35AAF1E4A771E142979F27B51793A48888856EE83A@AVEXMB1.qlogic.org>
Date: Mon, 12 Dec 2011 09:46:25 -0800
From: Mike Marciniszyn <mike.marciniszyn@...gic.com>
To: Thomas Meyer <thomas@...3r.de>
CC: "linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] IB/qib: Use kcalloc instead of kzalloc to allocate array
> Subject: [PATCH] IB/qib: Use kcalloc instead of kzalloc to allocate
> array
>
> 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@...3r.de>
Thanks for the patch!
Acked-by: Mike Marciniszyn <mike.marciniszyn@...gic.com>
This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
Powered by blists - more mailing lists