]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dvb-tc90522: Use kmalloc_array() in tc90522_master_xfer()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 7 Oct 2016 19:07:43 +0000 (16:07 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 14:16:20 +0000 (12:16 -0200)
commit48454966d5a1fff74d5376d201af6ce898d98070
tree97f86c22a2945897046833e45cd409c174cbb6ab
parentded867054f1bd83a453c976cb9657612317645e0
[media] dvb-tc90522: Use kmalloc_array() in tc90522_master_xfer()

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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/tc90522.c