]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe19e70eb036d06b901ac94fbb2b1811fffd04e8
tree470eaf9150825fe46725563342eda337651e56b8
parent257189ac731705a21d29d7c3947f1eba5ba02089
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