Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1470634

Re: [Xen-devel] [PATCH] xen/grant-table: Use kmalloc_array() in arch_gnttab_valloc()

From David Vrabel <david.vrabel@citrix.com>
Newsgroups linux.kernel
Subject Re: [Xen-devel] [PATCH] xen/grant-table: Use kmalloc_array() in arch_gnttab_valloc()
Date 2016-08-26 11:50 +0200
Message-ID <salVU-5e5-17@gated-at.bofh.it> (permalink)
References <sa1aO-nw-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 25/08/16 12:30, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] xen/grant-table: Use kmalloc_array() in arch_gnttab_valloc() SF Markus Elfring <elfring@users.sourceforge.net> - 2016-08-25 13:40 +0200
  Re: [PATCH] xen/grant-table: Use kmalloc_array() in  arch_gnttab_valloc() Juergen Gross <jgross@suse.com> - 2016-08-25 14:10 +0200
  Re: [Xen-devel] [PATCH] xen/grant-table: Use kmalloc_array() in  arch_gnttab_valloc() David Vrabel <david.vrabel@citrix.com> - 2016-08-26 11:50 +0200

csiph-web