]> asedeno.scripts.mit.edu Git - linux.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)
commitce3aeaf22c9f6d9dbbad00600b26ddd0263f8cbc
treedc4f7669ac33f4b578ae2ada081f902b45b8c626
parent3f81678d8e4918788b17ab007f41b86aea030bdc
[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