]> git.baikalelectronics.ru Git - kernel.git/commit
target: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 9 Apr 2017 17:02:38 +0000 (19:02 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 May 2017 05:21:27 +0000 (22:21 -0700)
commit87ba84e48b760beef9198cc0da1b8cacdd0bd175
treef3ea319b1961a0156f1618277babaa318b5420a5
parent4d9a0a4655dafe5655f1dae746df6f13ef2fefb7
target: Use kcalloc() in two functions

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

  This issue was detected by using the Coccinelle software.

* Replace the specification of data structures 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: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_rd.c