Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5b81fe3 authored by Santosh Kumar Singh's avatar Santosh Kumar Singh Committed by Mauro Carvalho Chehab
Browse files

[media] ivtv: Clean up file handle in open() error path



Fix to avoid possible exit file handle in error paths.

Signed-off-by: default avatarSantosh Kumar Singh <kumar.san1093@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 1e071039
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}