[media] DaVinci-VPIF-Capture: Use kcalloc() in vpif_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 12 Oct 2016 13:15:34 +0000 (10:15 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 14:59:44 +0000 (12:59 -0200)
commitb442c46f1b10f5e91025e36824362839ea3f3331
treef1ca14dece69dc3ffad246639f4284261be4ff54
parent96ca88423605116c041b5e5a6ef3af685402afb1
[media] DaVinci-VPIF-Capture: Use kcalloc() in vpif_probe()

* A multiplication for the size determination of a memory allocation
  indicated that an array data structure should be processed.
  Thus use the corresponding function "kcalloc".

  This issue was detected by using the Coccinelle software.

* Replace the specification of a data type by a pointer dereference
  to make the corresponding size determination a bit safer according to
  the Linux coding style convention.

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/platform/davinci/vpif_capture.c