]> 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)
commit0bf3316e88f8f489c3212434909c5c9991898f0c
tree97f86c22a2945897046833e45cd409c174cbb6ab
parent01f3c1e6c8276afa25e67a25d5a422edbc609a65
[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