Skip to contentSkip to conversation

ivtv: Clean up file handle in open() error path.

PATCH New Santosh Kumar Singh 1 participant 1 message Dec 19, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ivtv: Clean up file handle in open() error path.

Fix to avoid possible exit file handle in error paths.

---
 drivers/media/pci/ivtv/ivtv-alsa-pcm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/pci/ivtv/ivtv-alsa-pcm.c +1 -0
index a26f980..d0d2c93 100644
@@ -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;
 	}
Signature · 1 line
1.9.1