From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753015AbcHZJsZ (ORCPT ); Fri, 26 Aug 2016 05:48:25 -0400 Received: from smtp.citrix.com ([66.165.176.89]:60938 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbcHZJsY (ORCPT ); Fri, 26 Aug 2016 05:48:24 -0400 X-IronPort-AV: E=Sophos;i="5.28,580,1464652800"; d="scan'208";a="374620528" Subject: Re: [Xen-devel] [PATCH] xen/grant-table: Use kmalloc_array() in arch_gnttab_valloc() To: SF Markus Elfring , , , Boris Ostrovsky , David Vrabel , "H. Peter Anvin" , Ingo Molnar , =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , Thomas Gleixner References: <8a04e3d1-2756-9e3a-e5ba-f5d0e6495df7@users.sourceforge.net> CC: Julia Lawall , "kernel-janitors@vger.kernel.org" , LKML , "Paolo Bonzini" From: David Vrabel Message-ID: <57C0105F.1010201@citrix.com> Date: Fri, 26 Aug 2016 10:48:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <8a04e3d1-2756-9e3a-e5ba-f5d0e6495df7@users.sourceforge.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/08/16 12:30, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 25 Aug 2016 13:23:06 +0200 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus reuse 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. Applied to for-linus-4.9, thanks. David