media: atomisp: Fix v4l2_fh resource leak on open errors
authorHans de Goede <hdegoede@redhat.com>
Mon, 29 Aug 2022 10:35:43 +0000 (12:35 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 08:00:58 +0000 (10:00 +0200)
commit5b9853ad1329be49343a608d574eb232ff1273d0
tree9e2275fc95889abb586d048bd2229f15945a047c
parent5a93d0cacf2fe110848200554b2815b2578c679c
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>
drivers/staging/media/atomisp/pci/atomisp_fops.c