media: camss: csid: fix wrong size passed to devm_kmalloc_array()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 9 May 2022 14:04:59 +0000 (15:04 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:29 +0000 (10:30 +0100)
commit4c25384d136642d72098e36201ca988533e73065
tree1d9865c2d24f16a633ee77e7be66c676d63299cf
parentc984fcb1fadfbc77fe9c760f68522928a43d5677
media: camss: csid: fix wrong size passed to devm_kmalloc_array()

'supplies' is a pointer, the real size of struct regulator_bulk_data
should be pass to devm_kmalloc_array().

Fixes: 0d8140179715 ("media: camss: Add regulator_bulk support")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/qcom/camss/camss-csid.c