From: Hans Verkuil Date: Fri, 12 Oct 2007 09:18:30 +0000 (-0300) Subject: V4L/DVB (6338): ivtv: fix incorrect EBUSY return X-Git-Tag: v2.6.24-rc1~66^2~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af3420b4495914a1a889ae7de0220c793461ba1f;p=linux-2.6 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index 0e0605cc0b..24fcbb88e5 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; }