diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-11-26 09:54:53 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-01 22:10:20 (GMT) |
commit | ca9afe6f87b569cdf8e797395381f18ae23a2905 (patch) | |
tree | 9c5475baf2bb90f05fe25e8ca6fa8f53c2fc05dc /drivers/s390/char/sclp_con.c | |
parent | 879aa24d6394aa04b690a600a41ff500441ad384 (diff) | |
download | linux-fsl-qoriq-ca9afe6f87b569cdf8e797395381f18ae23a2905.tar.xz |
[media] v4l2-dev: fix race condition
The unregister function had a race condition with the v4l2_open
function. Ensure that both functions test and clear the REGISTER
flag from within a critical section.
Thanks to Laurent Pinchart for finding this race.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/s390/char/sclp_con.c')
0 files changed, 0 insertions, 0 deletions