[media] DaVinci-VPBE: Use kmalloc_array() in vpbe_initialize()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 11 Oct 2016 07:40:41 +0000 (04:40 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 14:19:15 +0000 (12:19 -0200)
commitf42afd29e60585904fc5127862263437ed7cbbd5
tree94359a247a7287b5dbe911e0bb1e03fa3697ba50
parente44e9489a7bda01bb26986fdf5b17559d26c26af
[media] DaVinci-VPBE: Use kmalloc_array() in vpbe_initialize()

* 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.

* 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/vpbe.c