]> git.baikalelectronics.ru Git - kernel.git/commit
ATM-ZeitNet: Use kmalloc_array() in start_tx()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 10 Sep 2016 07:55:53 +0000 (09:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Sep 2016 04:46:06 +0000 (21:46 -0700)
commit905c469d6421078663708ffaee2d0ffa076de159
tree6213a5c4813317eefe271c95cd0f25b7dbddb842
parent0e8d8ee02fbd55296a45122f64c1add6365344ad
ATM-ZeitNet: Use kmalloc_array() in start_tx()

* 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: David S. Miller <davem@davemloft.net>
drivers/atm/zatm.c