diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-10-12 06:18:30 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-22 12:01:44 -0200 |
commit | af3420b4495914a1a889ae7de0220c793461ba1f (patch) | |
tree | f8b5a6e8468921a5a2b975d7f01cb36fd78e1998 | |
parent | a04036a3129e09a9b9097de2b1f77dd82a6e9ac3 (diff) | |
download | linux-stable-af3420b4495914a1a889ae7de0220c793461ba1f.tar.gz linux-stable-af3420b4495914a1a889ae7de0220c793461ba1f.tar.bz2 linux-stable-af3420b4495914a1a889ae7de0220c793461ba1f.zip |
V4L/DVB (6338): ivtv: fix incorrect EBUSY return
Trying to open the radio when a capture is in progress will make it
impossible to open the radio again since the radio stream wasn't released.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index 0e0605cc0bd3..24fcbb88e529 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.c +++ b/drivers/media/video/ivtv/ivtv-fileops.c @@ -892,6 +892,7 @@ static int ivtv_serialized_open(struct ivtv_stream *s, struct file *filp) if (atomic_read(&itv->capturing) > 0) { /* switching to radio while capture is in progress is not polite */ + ivtv_release_stream(s); kfree(item); return -EBUSY; } |