]> git.karo-electronics.de Git - linux-beck.git/commit
ste_dma40: Use kmalloc_array() in d40_hw_detect_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 09:44:55 +0000 (11:44 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:17 +0000 (23:06 +0530)
commit28c01058b28527be2a81e8ba2a53437910defbf3
tree4037c89e5f3cdc30e54d63cca4d4528c3d4a6b5f
parente349d4b7317818cbb21096ead26420c80819ddd4
ste_dma40: Use kmalloc_array() in d40_hw_detect_init()

A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kmalloc_array".

This issue was detected also by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c