spi: Use kcalloc() in spi_register_board_info()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 13 Jan 2017 11:28:04 +0000 (12:28 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 17 Jan 2017 18:21:12 +0000 (18:21 +0000)
commitf9bdb7fdd2cac17bdc9c344b6036e6939fa087cd
tree39431fea4995ffe718531c8a6e4f367c2572c67f
parentfafd67940774733fa97f4b09412aea6981b82e0a
spi: Use kcalloc() in spi_register_board_info()

A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus reuse 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: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c