2 Dec 06:00
V4L/DVB (9668): em28xx: fix a race condition with hald
From: Linux Kernel Mailing List <linux-kernel <at> vger.kernel.org>
Subject: V4L/DVB (9668): em28xx: fix a race condition with hald
Newsgroups: gmane.linux.kernel.commits.head
Date: 2008-12-02 05:01:00 GMT
Subject: V4L/DVB (9668): em28xx: fix a race condition with hald
Newsgroups: gmane.linux.kernel.commits.head
Date: 2008-12-02 05:01:00 GMT
Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=818a557eeb9c16a9a2dc93df348b0ff68fbc487f Commit: 818a557eeb9c16a9a2dc93df348b0ff68fbc487f Parent: cce257109f534b4954a5d04aa4ba6905f4682f93 Author: Mauro Carvalho Chehab <mchehab <at> redhat.com> AuthorDate: Thu Nov 20 10:30:26 2008 -0300 Committer: Mauro Carvalho Chehab <mchehab <at> redhat.com> CommitDate: Thu Nov 20 18:12:02 2008 -0200 V4L/DVB (9668): em28xx: fix a race condition with hald Newer versions of hald tries to open it to call QUERYCAP. Due to the lack of a proper locking, it is possible to open the device before it finishes initialization. This patch adds a lock to avoid this risk, and to protect the list of em28xx devices. While here, remove the uneeded BKL lock. Signed-off-by: Mauro Carvalho Chehab <mchehab <at> redhat.com> --- drivers/media/video/em28xx/em28xx-video.c | 128 +++++++++++++++++------------ 1 files changed, 75 insertions(+), 53 deletions(-) diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index c32fc7d..90a11b5 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c @@ -73,6 +73,7 @@ MODULE_DESCRIPTION(DRIVER_DESC);(Continue reading)
RSS Feed