summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-10-12 11:18:30 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2007-10-12 11:18:30 +0200
commitb7e3a1bcbb2b1d4b8ffa58856d5577a107e73671 (patch)
tree2cfd3c803ab1e458f1d1cfd8f74f7249d56a8e2e /linux/drivers/media/video/ivtv
parent30237df1702f85366f07cef0b1041255e296fd28 (diff)
downloadmediapointer-dvb-s2-b7e3a1bcbb2b1d4b8ffa58856d5577a107e73671.tar.gz
mediapointer-dvb-s2-b7e3a1bcbb2b1d4b8ffa58856d5577a107e73671.tar.bz2
ivtv: fix incorrect EBUSY return.
From: Hans Verkuil <hverkuil@xs4all.nl> 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>
Diffstat (limited to 'linux/drivers/media/video/ivtv')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-fileops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-fileops.c b/linux/drivers/media/video/ivtv/ivtv-fileops.c
index da50fa4a7..bb697dc9e 100644
--- a/linux/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/linux/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;
}