]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Use kcalloc() in sr_set_nvalues()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 3 Jun 2017 17:09:07 +0000 (19:09 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 8 Jun 2017 10:02:31 +0000 (03:02 -0700)
commit30c267827839ac7eae580b2a7f6a715b1db5ff14
tree3bbf45c73ce68fe53b9a3d27c6524a47997e64c5
parent4eec9dbdbf228a89e790dc3c8f68d174b7d83b93
ARM: OMAP2+: Use kcalloc() in sr_set_nvalues()

* 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 structure 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: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/sr_device.c