WSL2-Linux-Kernel/arch/s390
Markus Elfring a1708a2ead KVM: s390: Improve determination of sizes in kvm_s390_import_bp_data()
* 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".

  Suggested-by: Paolo Bonzini <pbonzini@redhat.com>

  This issue was detected also by using the Coccinelle software.

* Replace the specification of data structures by pointer dereferences
  to make the corresponding size determination a bit safer according to
  the Linux coding style convention.

* Delete the local variable "size" which became unnecessary with
  this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Message-Id: <c3323f6b-4af2-0bfb-9399-e529952e378e@users.sourceforge.net>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2016-09-08 13:40:54 +02:00
..
appldata mm: move most file-based accounting to the node 2016-07-28 16:07:41 -07:00
boot s390: clarify compressed image code path 2016-08-08 15:41:31 +02:00
configs s390/config: make the vector optimized crc function builtin 2016-08-08 15:41:32 +02:00
crypto s390/crc32-vx: Fix checksum calculation for small sizes 2016-08-08 15:41:31 +02:00
hypfs - ARM: GICv3 ITS emulation and various fixes. Removal of the old 2016-08-02 16:11:27 -04:00
include KVM: s390: allow 255 VCPUs when sca entries aren't used 2016-09-08 13:40:53 +02:00
kernel KVM: s390: write external damage code on machine checks 2016-09-08 09:07:52 +02:00
kvm KVM: s390: Improve determination of sizes in kvm_s390_import_bp_data() 2016-09-08 13:40:54 +02:00
lib Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2016-08-16 15:50:22 -07:00
mm s390/pageattr: handle numpages parameter correctly 2016-08-10 10:12:19 +02:00
net s390/bpf: fix recache skb->data/hlen for skb_vlan_push/pop 2016-05-19 09:14:27 +02:00
numa s390/numa: only set possible nodes within node_possible_map 2016-07-31 05:28:00 -04:00
oprofile s390/oprofile: remove hardware sampler support 2016-06-28 09:32:22 +02:00
pci dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
tools s390/facilities: do not generate DWORDS define anymore 2016-07-31 05:27:59 -04:00
Kbuild s390/numa: add core infrastructure 2015-08-03 18:40:25 +02:00
Kconfig virtio/vhost: fixes and cleanups for 4.8 2016-08-11 14:10:23 -07:00
Kconfig.debug arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug 2016-01-09 06:30:49 -08:00
Makefile s390/facilities: add helper tool to generate facility lists 2015-12-18 14:59:20 +01:00
defconfig s390/config: make the vector optimized crc function builtin 2016-08-08 15:41:32 +02:00