From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756200AbcH2T7y (ORCPT ); Mon, 29 Aug 2016 15:59:54 -0400 Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:22449 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755673AbcH2T7w (ORCPT ); Mon, 29 Aug 2016 15:59:52 -0400 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 29 Aug 2016 21:59:50 +0200 X-ME-IP: 90.38.47.83 From: Robert Jarzmik To: SF Markus Elfring Cc: linux-arm-kernel@lists.infradead.org, Daniel Mack , Haojian Zhuang , Russell King , LKML , kernel-janitors@vger.kernel.org, Julia Lawall , Paolo Bonzini Subject: Re: [PATCH] ARM: pxa: Use kmalloc_array() in pxa_pm_init() References: <49864e7d-f786-9739-6d8c-4480ce228830@users.sourceforge.net> X-URL: http://belgarath.falguerolles.org/ Date: Mon, 29 Aug 2016 21:59:48 +0200 In-Reply-To: <49864e7d-f786-9739-6d8c-4480ce228830@users.sourceforge.net> (SF Markus Elfring's message of "Thu, 25 Aug 2016 18:07:05 +0200") Message-ID: <8760qje47f.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SF Markus Elfring writes: > From: Markus Elfring > Date: Thu, 25 Aug 2016 18:01:37 +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 type 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 Queued to pxa/for-next, thanks. Cheers. -- Robert