]> git.baikalelectronics.ru Git - kernel.git/commit
[media] DaVinci-VPFE-Capture: Use kmalloc_array() in vpfe_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 12 Oct 2016 08:20:02 +0000 (05:20 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 14:42:05 +0000 (12:42 -0200)
commit317fe523e64dd9577d07d624c61eb73d0d23389c
tree08e619d50567b89b7808ada7298fbc1d4185d7e1
parente8dcc8e6d8ccc1ae0cd4e53b1e98f7c9d700b847
[media] DaVinci-VPFE-Capture: Use kmalloc_array() in vpfe_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 "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/vpfe_capture.c