commit | 121ec13267fabcf2c81e4584f1505069e234b30d | [log] [tgz] |
---|---|---|
author | Mauro Carvalho Chehab <mchehab@redhat.com> | Mon Feb 14 07:01:51 2011 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Mon Mar 21 20:32:00 2011 -0300 |
tree | 3ec419067d994be255f9b64a46682e5760b10a8f | |
parent | b618726414f3eb7b0b122e459efe3c5edc36b2fc [diff] |
[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>