]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: v4l: Memset argument to 0 before calling get_mbus_config pad op
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 16 Dec 2024 08:48:49 +0000 (10:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:21 +0000 (11:13 +0200)
commitca39ce3f2373f0369ece0bd2b413e8c2248446d8
treec957ca6e7db4ffeb0709652bce7e56fc992baedd
parent9757124c3ff0e6a243dda9088b42d5c5401275a5
media: v4l: Memset argument to 0 before calling get_mbus_config pad op

[ Upstream commit 91d6a99acfa5ce9f95ede775074b80f7193bd717 ]

Memset the config argument to get_mbus_config V4L2 sub-device pad
operation to zero before calling the operation. This ensures the callers
don't need to bother with it nor the implementations need to set all
fields that may not be relevant to them.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h