Commit 5b9853ad authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab
Browse files

media: atomisp: Fix v4l2_fh resource leak on open errors



When atomisp_open() fails then it must call v4l2_fh_release() to undo
the results of v4l2_fh_open().

Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 5a93d0ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -804,6 +804,7 @@ static int atomisp_open(struct file *file)
	pm_runtime_put(vdev->v4l2_dev->dev);
error:
	rt_mutex_unlock(&isp->mutex);
	v4l2_fh_release(file);
	return ret;
}