]> git.baikalelectronics.ru Git - kernel.git/commit
ATM-ForeRunnerHE: Use kmalloc_array() in he_init_group()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 8 Sep 2016 13:43:37 +0000 (15:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Sep 2016 02:27:32 +0000 (19:27 -0700)
commitea5faddcaadb406de39e5862c1a6c64106ad7b44
tree085e4cc12f46f4808d0c29124c61b9491091bafa
parent65044325cbe899918a4a2e5ef2856a2e00fbc35d
ATM-ForeRunnerHE: Use kmalloc_array() in he_init_group()

* Multiplications for the size determination of memory allocations
  indicated that array data structures should be processed.
  Thus use the corresponding function "kmalloc_array".

  This issue was detected by using the Coccinelle software.

* Replace the specification of data types by pointer dereferences
  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: David S. Miller <davem@davemloft.net>
drivers/atm/he.c