diff options
| author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2024-12-16 10:48:49 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-04 14:42:09 +0200 |
| commit | f8a9f45f75ab315553794e7cec8384546c33d281 (patch) | |
| tree | a0a14521cfc859f9149ee7a80d69136350934107 /include/media | |
| parent | 0b9d2468c3d88c924f505e950c4de74ace09795c (diff) | |
| download | linux-f8a9f45f75ab315553794e7cec8384546c33d281.tar.gz linux-f8a9f45f75ab315553794e7cec8384546c33d281.tar.bz2 linux-f8a9f45f75ab315553794e7cec8384546c33d281.zip | |
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>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/v4l2-subdev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index b4fcd0164048..0740dfc6c048 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -822,7 +822,9 @@ struct v4l2_subdev_state { * possible configuration from the remote end, likely calling * this operation as close as possible to stream on time. The * operation shall fail if the pad index it has been called on - * is not valid or in case of unrecoverable failures. + * is not valid or in case of unrecoverable failures. The + * config argument has been memset to 0 just before calling + * the op. * * @set_routing: enable or disable data connection routes described in the * subdevice routing table. |
