Message ID | 20220901094626.11513-13-hdegoede@redhat.com |
---|---|
State | Accepted |
Commit | 5b9853ad1329be49343a608d574eb232ff1273d0 |
Headers | show |
Series | media: atomisp: More cleanups / code removal | expand |
diff --git a/drivers/staging/media/atomisp/pci/atomisp_fops.c b/drivers/staging/media/atomisp/pci/atomisp_fops.c index 6518e6d5c7b5..61571f3fb060 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_fops.c +++ b/drivers/staging/media/atomisp/pci/atomisp_fops.c @@ -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; }
When atomisp_open() fails then it must call v4l2_fh_release() to undo the results of v4l2_fh_open(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- drivers/staging/media/atomisp/pci/atomisp_fops.c | 1 + 1 file changed, 1 insertion(+)