mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 18:42:44 +00:00
9e5f21d656
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
vivid-cec.c | ||
vivid-cec.h | ||
vivid-core.c | ||
vivid-core.h | ||
vivid-ctrls.c | ||
vivid-ctrls.h | ||
vivid-kthread-cap.c | ||
vivid-kthread-cap.h | ||
vivid-kthread-out.c | ||
vivid-kthread-out.h | ||
vivid-kthread-touch.c | ||
vivid-kthread-touch.h | ||
vivid-meta-cap.c | ||
vivid-meta-cap.h | ||
vivid-meta-out.c | ||
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 | ||
vivid-sdr-cap.h | ||
vivid-touch-cap.c | ||
vivid-touch-cap.h | ||
vivid-vbi-cap.c | ||
vivid-vbi-cap.h | ||
vivid-vbi-gen.c | ||
vivid-vbi-gen.h | ||
vivid-vbi-out.c | ||
vivid-vbi-out.h | ||
vivid-vid-cap.c | ||
vivid-vid-cap.h | ||
vivid-vid-common.c | ||
vivid-vid-common.h | ||
vivid-vid-out.c | ||
vivid-vid-out.h |