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

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

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



Fix to avoid possible memory leak and 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 7c13a4d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -971,6 +971,7 @@ static int zoran_open(struct file *file)
	return 0;

fail_fh:
	v4l2_fh_exit(&fh->fh);
	kfree(fh);
fail_unlock:
	mutex_unlock(&zr->lock);