summaryrefslogtreecommitdiff
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorSantosh Kumar Singh <kumar.san1093@gmail.com>2016-12-19 15:12:07 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-01-31 07:45:47 -0200
commitc5b81fe36cc6ff2e5426dbee6c665a90f640069a (patch)
tree78003af43cb8c4ba37a79d7bdc1ed4853bb55ad8 /drivers/media/pci
parent1e071039b1535e2a781acc750681deb2eb838565 (diff)
[media] ivtv: Clean up file handle in open() error path
Fix to avoid possible exit file handle in error paths. Signed-off-by: Santosh Kumar Singh <kumar.san1093@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/ivtv/ivtv-alsa-pcm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-alsa-pcm.c b/drivers/media/pci/ivtv/ivtv-alsa-pcm.c
index 6f076d8e68da..885cfddfc0f0 100644
--- a/drivers/media/pci/ivtv/ivtv-alsa-pcm.c
+++ b/drivers/media/pci/ivtv/ivtv-alsa-pcm.c
@@ -169,6 +169,7 @@ static int snd_ivtv_pcm_capture_open(struct snd_pcm_substream *substream)
/* See if the stream is available */
if (ivtv_claim_stream(&item, item.type)) {
/* No, it's already in use */
+ v4l2_fh_exit(&item.fh);
snd_ivtv_unlock(itvsc);
return -EBUSY;
}