linux/drivers/media/test-drivers/vivid
Hans Verkuil 9e5f21d656 media: vivid: fix 'disconnect' error injection
The 'disconnect' error injection functionality suffered from bit rot.

New device nodes were added without updating vivid_user_gen_s_ctrl(), so
that function had to be updated for the new device nodes.

Also, vivid didn't check if specific device nodes were actually ever
created, so the vivid_is_last_user() would fail on that (it would return
true instead of false in that case).

Finally, selecting Disconnect, then unbind the vivid driver would fail
since the remove() would think that the device nodes were already
unregistered. Keep track of whether disconnect was pressed and re-register
the device nodes in remove() before doing the real unregister.

[hverkuil: unsigned uses -> unsigned int uses]

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-12-07 15:07:51 +01:00
..
Kconfig
Makefile
vivid-cec.c
vivid-cec.h
vivid-core.c media: vivid: fix 'disconnect' error injection 2020-12-07 15:07:51 +01:00
vivid-core.h media: vivid: fix 'disconnect' error injection 2020-12-07 15:07:51 +01:00
vivid-ctrls.c media: vivid: fix 'disconnect' error injection 2020-12-07 15:07:51 +01:00
vivid-ctrls.h
vivid-kthread-cap.c media: vivid: fix (partially) timing issues 2020-11-16 10:31:08 +01:00
vivid-kthread-cap.h
vivid-kthread-out.c media: vivid: fix (partially) timing issues 2020-11-16 10:31:08 +01:00
vivid-kthread-out.h
vivid-kthread-touch.c media: vivid: fix (partially) timing issues 2020-11-16 10:31:08 +01:00
vivid-kthread-touch.h
vivid-meta-cap.c
vivid-meta-cap.h
vivid-meta-out.c media: vivid: Fix global-out-of-bounds read in precalculate_color() 2020-08-26 18:51:16 +02:00
vivid-meta-out.h
vivid-osd.c
vivid-osd.h
vivid-radio-common.c
vivid-radio-common.h
vivid-radio-rx.c
vivid-radio-rx.h
vivid-radio-tx.c
vivid-radio-tx.h
vivid-rds-gen.c
vivid-rds-gen.h
vivid-sdr-cap.c media: vivid: fix (partially) timing issues 2020-11-16 10:31:08 +01:00
vivid-sdr-cap.h
vivid-touch-cap.c
vivid-touch-cap.h
vivid-vbi-cap.c
vivid-vbi-cap.h
vivid-vbi-gen.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
vivid-vbi-gen.h
vivid-vbi-out.c
vivid-vbi-out.h
vivid-vid-cap.c media: v4l2: allocate v4l2_clip objects early 2020-11-16 10:31:06 +01:00
vivid-vid-cap.h
vivid-vid-common.c media: vivid: Add support to the CSC API 2020-09-26 10:21:34 +02:00
vivid-vid-common.h
vivid-vid-out.c media: v4l2: allocate v4l2_clip objects early 2020-11-16 10:31:06 +01:00
vivid-vid-out.h