ivtv: Clean up file handle in open() error path.
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/media/pci/ivtv/ivtv-alsa-pcm.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/pci/ivtv/ivtv-alsa-pcm.c +1 -0
@@ -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