dlm: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 May 2017 07:34:53 +0000 (09:34 +0200)
committerDavid Teigland <teigland@redhat.com>
Mon, 7 Aug 2017 16:23:09 +0000 (11:23 -0500)
commit2f48e06102b2541c0957a223c923dc8036112142
tree070131c86198d93b0ea9b747511c5814484d6cf8
parent790854becc1921d0cf46180ee55beb4a1787e680
dlm: Use kcalloc() in two functions

* Multiplications for the size determination of memory allocations
  indicated that array data structures should be processed.
  Thus reuse 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 determinations a bit safer according to
  the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/member.c