]> git.baikalelectronics.ru Git - kernel.git/commit
HSI: Use kcalloc() in hsi_register_board_info()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 25 Apr 2017 11:56:08 +0000 (13:56 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 8 Jun 2017 11:21:43 +0000 (13:21 +0200)
commit257189ac731705a21d29d7c3947f1eba5ba02089
tree8fab4673175bdbd8a2aada86496153dd59399fae
parentd38920409346010a571d965fc02b1d59041555f2
HSI: Use kcalloc() in hsi_register_board_info()

A multiplication for the size determination of a memory allocation
indicated that an array data structure 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_boardinfo.c