]> git.baikalelectronics.ru Git - kernel.git/commit
[media] radio-mr800: fix locking order
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 11 Oct 2010 15:36:37 +0000 (12:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:18:15 +0000 (01:18 -0200)
commite19ec2eda4c4e89c37e90fe31139ddccb8323ca4
treec0b11f9fe5e386187881d59247a9e274046d7660
parent5de2f41d1702e2b8242e8cd6ff3aba5f787d07df
[media] radio-mr800: fix locking order

Don't hold the lock before unregistering the device, since when the
device is unregistered the datastruct containing the lock may be freed
(if the refcount went to 0).

Also fixed the framework documentation that erroneously suggested the
wrong locking order as well.

Reported-by: David Ellingsworth <david@identd.dyndns.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: David Ellingsworth <david@identd.dyndns.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/video4linux/v4l2-framework.txt
drivers/media/radio/radio-mr800.c