From: David Miller Date: Sat, 10 Sep 2016 02:27:50 +0000 Subject: Re: [PATCH] ATM-ForeRunnerHE: Use kmalloc_array() in he_init_group() Message-Id: <20160909.192750.65059727736015475.davem@davemloft.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: elfring@users.sourceforge.net Cc: linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, 3chas3@gmail.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, julia.lawall@lip6.fr, pbonzini@redhat.com From: SF Markus Elfring Date: Thu, 8 Sep 2016 15:50:05 +0200 > From: Markus Elfring > Date: Thu, 8 Sep 2016 15:43:37 +0200 > > * Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function "kmalloc_array". > > This issue was detected by using the Coccinelle software. > > * Replace the specification of data types by pointer dereferences > to make the corresponding size determination a bit safer according to > the Linux coding style convention. > > Signed-off-by: Markus Elfring Applied.