media: test_drivers: vivid-core: Use array_size() helper
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 15 Jun 2020 21:40:15 +0000 (23:40 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jul 2020 10:42:19 +0000 (12:42 +0200)
commita32e8adf2fdbd4fd1d046769140a8afd0489fe65
tree5438510147ce71f5795908e20203e71046384a6f
parent961d3b27a2aff52dda0b97d35085a743a27c2f46
media: test_drivers: vivid-core: Use array_size() helper

The tpg_alloc() and vmalloc() functions have no 2-factor argument form, so
multiplication factors need to be wrapped in array_size().

This issue was found with the help of Coccinelle and, audited and fixed
manually.

Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vivid/vivid-core.c