mirror of
https://github.com/torvalds/linux.git
synced 2026-08-05 14:59:58 +02:00
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: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
5a93d0cacf
commit
5b9853ad13
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user