]> git.baikalelectronics.ru Git - kernel.git/commit
[media] DaVinci-VPIF-Display: Use kcalloc() in vpif_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 12 Oct 2016 13:30:44 +0000 (10:30 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 15:01:44 +0000 (13:01 -0200)
commit3e5cabeb1f8a42c679a7220873c7353c5cdd8c4c
tree3cd2c5625d97cb770bbed65f15abe081f388b893
parent689ea7271fb9ef82215a00111a6768365f7c7c7b
[media] DaVinci-VPIF-Display: 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_display.c