]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: media_device_enum_links32: clean a reserved field
authorJungo Lin <jungo.lin@mediatek.com>
Wed, 3 Apr 2019 01:44:27 +0000 (21:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:20 +0000 (07:28 +0200)
commit351e1da7ea117d06675e176e8a30a75aa0f85327
treecb907a6ecacf153de92896ff2372dbe9b09f69aa
parent2697ead73644f88264dba93192e458eaaaf37597
media: media_device_enum_links32: clean a reserved field

[ Upstream commit f49308878d7202e07d8761238e01bd0e5fce2750 ]

In v4l2-compliance utility, test MEDIA_IOC_ENUM_ENTITIES
will check whether reserved field of media_links_enum filled
with zero.

However, for 32 bit program, the reserved field is missing
copy from kernel space to user space in media_device_enum_links32
function.

This patch adds the cleaning a reserved field logic in
media_device_enum_links32 function.

Signed-off-by: Jungo Lin <jungo.lin@mediatek.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/media-device.c