]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Use kmalloc_array() in add_system_map_addresses()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 28 Aug 2016 09:40:53 +0000 (11:40 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 20 Sep 2016 16:02:56 +0000 (18:02 +0200)
commit469d5831d6df8ea578ba64159e74844166dc1e04
tree8243e4270cb63121cea2a5543e1020228a42acc1
parent82310f7150b03ad5394a67ef7d3a1333b7d7d0b3
parisc: Use kmalloc_array() in add_system_map_addresses()

* A multiplication for the size determination of a memory allocation
  indicated that an array data structure should be processed.
  Thus use 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 <elfring@users.sourceforge.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/inventory.c