OSDN Git Service

[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)
commitd2dc12d6c8325d1093ffb142315f6b4fc53f95e7
tree97f86c22a2945897046833e45cd409c174cbb6ab
parentbd676c0c04ec94bd830b9192e2c33f2c4532278d
[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