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)
commitde7c98eb7c6f72bbfa87afc5b7e2d3b0188a8d83
tree8fab4673175bdbd8a2aada86496153dd59399fae
parent0fbad7c8e2def6a1aa84c3efff23f79539ba530a
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