]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: e500: Use kcalloc() in e500_mmu_host_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 20 Jan 2017 15:30:18 +0000 (16:30 +0100)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 20 Apr 2017 01:37:55 +0000 (11:37 +1000)
commit821b3f6995a9a8a7e81fd7a64ead846f69f4b790
treeccbdf74c5c5f40a2906e800cfb326e51fb69ace3
parent58405e8101fa17f448fe44c2562e656d3b43129c
KVM: PPC: e500: Use kcalloc() in e500_mmu_host_init()

* A multiplication for the size determination of a memory allocation
  indicated that an array data structure should be processed.
  Thus use the corresponding function "kcalloc".

  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 <elfring@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/e500_mmu_host.c