diff options
author | Markus Elfring | 2016-09-17 11:44:55 +0200 |
---|---|---|
committer | Vinod Koul | 2016-09-26 19:36:17 +0200 |
commit | 28c01058b28527be2a81e8ba2a53437910defbf3 (patch) | |
tree | 4037c89e5f3cdc30e54d63cca4d4528c3d4a6b5f /drivers/dma/sun4i-dma.c | |
parent | ste_dma40: Replace four kzalloc() calls by kcalloc() in d40_hw_detect_init() (diff) | |
download | kernel-qcow2-linux-28c01058b28527be2a81e8ba2a53437910defbf3.tar.gz kernel-qcow2-linux-28c01058b28527be2a81e8ba2a53437910defbf3.tar.xz kernel-qcow2-linux-28c01058b28527be2a81e8ba2a53437910defbf3.zip |
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>
Diffstat (limited to 'drivers/dma/sun4i-dma.c')
0 files changed, 0 insertions, 0 deletions