[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1482167527-4831-1-git-send-email-kumar.san1093@gmail.com>
Date: Mon, 19 Dec 2016 22:42:07 +0530
From: Santosh Kumar Singh <kumar.san1093@...il.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Andy Walls <awalls@...metrocast.net>
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Santosh Kumar Singh <kumar.san1093@...il.com>
Subject: [PATCH] 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@...il.com>
---
drivers/media/pci/ivtv/ivtv-alsa-pcm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/pci/ivtv/ivtv-alsa-pcm.c b/drivers/media/pci/ivtv/ivtv-alsa-pcm.c
index a26f980..d0d2c93 100644
--- a/drivers/media/pci/ivtv/ivtv-alsa-pcm.c
+++ b/drivers/media/pci/ivtv/ivtv-alsa-pcm.c
@@ -174,6 +174,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;
}
--
1.9.1
Powered by blists - more mailing lists