]> git.baikalelectronics.ru Git - kernel.git/commit
[media] RedRat3: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 13 Oct 2016 06:35:57 +0000 (03:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 12:34:39 +0000 (10:34 -0200)
commita90f01ef49b72b6d1906899249a314e5f0712cd6
treedff4ae4d603974a257f5a18bd73aa2e4cdf66a90
parent3edccb74b379e3bf72927f7e27ac66c8384c6fe2
[media] RedRat3: Use kcalloc() in two functions

* Multiplications for the size determination of memory allocations
  indicated that array data structures should be processed.
  Thus use the corresponding function "kcalloc".

  This issue was detected by using the Coccinelle software.

* Replace the specification of data types by pointer dereferences
  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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/redrat3.c