]> git.baikalelectronics.ru Git - kernel.git/commit
[media] winbond-cir: Use kmalloc_array() in wbcir_tx()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 14 Oct 2016 05:19:00 +0000 (02:19 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 13:04:29 +0000 (11:04 -0200)
commit5c5f39ff63bf38d2c1664e9a38e622b42412a4a9
treedc4f7669ac33f4b578ae2ada081f902b45b8c626
parent5a7ba480b16096f223713d5c7859f02bfb8bf5f6
[media] winbond-cir: Use kmalloc_array() in wbcir_tx()

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 by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/winbond-cir.c