mbox series

[GIT,FIXES,FOR,v6.3] media: v4l2-subdev.c: clear stream field

Message ID fb672e3b-ed17-bcc3-ddd8-b1d851fb5b3d@xs4all.nl (mailing list archive)
State New, archived
Headers show
Series [GIT,FIXES,FOR,v6.3] media: v4l2-subdev.c: clear stream field | expand

Pull-request

git://linuxtv.org/hverkuil/media_tree.git tags/br-v6.3k

Message

Hans Verkuil Feb. 16, 2023, 2:01 p.m. UTC
The recently merged series adding the new 'stream' field caused a regression
in both userspace and kernelspace API where the 'stream' field was passed in
uninitialized, and then failed the 'check_state' check, causing -EINVAL to be
returned.

Since this feature isn't used anywhere yet, add this patch to zero the 'stream'
field to prevent breakage.

This will be properly resolved for 6.4, but for now let's keep existing
applications and drivers running...

Regards,

	Hans

The following changes since commit 05165248df6552daaacf5621e3a5e2369117a8a9:

  media: v4l2-ctrls-api.c: move ctrl->is_new = 1 to the correct line (2023-02-09 09:22:45 +0100)

are available in the Git repository at:

  git://linuxtv.org/hverkuil/media_tree.git tags/br-v6.3k

for you to fetch changes up to a990d9e36d35ab6887c6ce2c8e1191ccb1dc7b48:

  media: v4l2-subdev.c: clear stream field (2023-02-16 12:10:16 +0100)

----------------------------------------------------------------
Tag branch

----------------------------------------------------------------
Hans Verkuil (1):
      media: v4l2-subdev.c: clear stream field

 drivers/media/v4l2-core/v4l2-subdev.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)