From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933568AbcHYMEd (ORCPT ); Thu, 25 Aug 2016 08:04:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:46889 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933433AbcHYME3 (ORCPT ); Thu, 25 Aug 2016 08:04:29 -0400 Subject: Re: [PATCH] xen/grant-table: Use kmalloc_array() in arch_gnttab_valloc() To: SF Markus Elfring , xen-devel@lists.xenproject.org, x86@kernel.org, Boris Ostrovsky , David Vrabel , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner References: <8a04e3d1-2756-9e3a-e5ba-f5d0e6495df7@users.sourceforge.net> Cc: LKML , "kernel-janitors@vger.kernel.org" , Julia Lawall , Paolo Bonzini From: Juergen Gross Message-ID: <58ea7176-c48f-65e0-29f8-bd5518cee150@suse.com> Date: Thu, 25 Aug 2016 14:03:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/08/16 13: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. > > Signed-off-by: Markus Elfring Reviewed-by: Juergen Gross Juergen