HSI: core: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 25 Apr 2017 12:17:50 +0000 (14:17 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 8 Jun 2017 11:21:43 +0000 (13:21 +0200)
commit67ddd75771b6b860bc0cebb3b7fd4cbebeda9cd4
tree470eaf9150825fe46725563342eda337651e56b8
parentde7c98eb7c6f72bbfa87afc5b7e2d3b0188a8d83
HSI: core: 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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/hsi/hsi_core.c