From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753992AbcIJC0z (ORCPT ); Fri, 9 Sep 2016 22:26:55 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:35626 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751971AbcIJC0x (ORCPT ); Fri, 9 Sep 2016 22:26:53 -0400 Date: Fri, 09 Sep 2016 19:26:52 -0700 (PDT) Message-Id: <20160909.192652.526503079536383297.davem@davemloft.net> 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 Subject: Re: [PATCH] ATM-ENI: Use kmalloc_array() in eni_start() From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 09 Sep 2016 19:26:52 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SF Markus Elfring Date: Thu, 8 Sep 2016 14:40:06 +0200 > From: Markus Elfring > Date: Thu, 8 Sep 2016 14:20:17 +0200 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "kmalloc_array". > > This issue was detected by using the Coccinelle software. > > * Replace the specification of a data structure by a pointer dereference > to make the corresponding size determination a bit safer according to > the Linux coding style convention. > > Signed-off-by: Markus Elfring Applied to net-next. From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Sat, 10 Sep 2016 02:26:52 +0000 Subject: Re: [PATCH] ATM-ENI: Use kmalloc_array() in eni_start() Message-Id: <20160909.192652.526503079536383297.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 14:40:06 +0200 > From: Markus Elfring > Date: Thu, 8 Sep 2016 14:20:17 +0200 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "kmalloc_array". > > This issue was detected by using the Coccinelle software. > > * Replace the specification of a data structure by a pointer dereference > to make the corresponding size determination a bit safer according to > the Linux coding style convention. > > Signed-off-by: Markus Elfring Applied to net-next.