]> git.karo-electronics.de Git - linux-beck.git/commit
[media] blackfin-capture: Use kcalloc() in bcap_init_sensor_formats()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 9 Oct 2016 19:12:13 +0000 (16:12 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 14:18:18 +0000 (12:18 -0200)
commit73446966b9ab9da118bb905bdbb5e8d3a1826b25
tree06dbb1059720f461e19f8975215dbcacf397a94a
parent26f61c0ddf0e191fdab5c15f00c4bf8f3544be6b
[media] blackfin-capture: Use kcalloc() in bcap_init_sensor_formats()

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

This issue was detected by using the Coccinelle software.

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/blackfin/bfin_capture.c