]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (6342): ivtv: fix circular locking (bug 9037)
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 13 Oct 2007 08:54:48 +0000 (05:54 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 22 Oct 2007 14:01:47 +0000 (12:01 -0200)
commit4dd5548f232e084edc7d1b46d55eb251f2220d31
tree14a5833adcd021af9206f47c8530ec83c9bd3ae3
parent547ef68e2457ec6187694a88a703635020016945
V4L/DVB (6342): ivtv: fix circular locking (bug 9037)

If you try to access the video device from within an udev rule,
then you get into a circular locking situation.

Changed the driver to postpone the registration of the devices until
everything else has been fully initialized, so that the newly created
device can be used immediately.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-driver.c
drivers/media/video/ivtv/ivtv-streams.c
drivers/media/video/ivtv/ivtv-streams.h