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)
commit55ec409202ff347d22673d90e01a159d3bd6d9cd
treef3ea319b1961a0156f1618277babaa318b5420a5
parent3829f38169aaf38c764afba852e320d8f3b006de
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