]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx88: Don't allow opening a device while it is not ready
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 Feb 2011 10:01:51 +0000 (07:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:00 +0000 (20:32 -0300)
commit1478ad4ad088c406f1f24c1456f9f4e0fb0dffa5
tree3ec419067d994be255f9b64a46682e5760b10a8f
parentd26e7a67edcfe2254a45319d41bd5d10e713cba9
[media] cx88: Don't allow opening a device while it is not ready

After registering the cdev, it would be possible do have an open on it.
In a matter of fact, some versions of udev do this. So, move registration
to the end and protect it with a mutex.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-video.c