]> git.baikalelectronics.ru Git - kernel.git/commit
media: amphion: release m2m ctx when releasing vpu instance
authorMing Qian <ming.qian@nxp.com>
Mon, 29 Aug 2022 05:33:16 +0000 (07:33 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 06:48:27 +0000 (08:48 +0200)
commit2e26766107bc10a8dc81357f9b19e4bf7aafb0cb
treeb9e113b846addad8bf91209d718baef9319f437f
parent5d0b3b861c753972d67588edad1117755839e168
media: amphion: release m2m ctx when releasing vpu instance

release m2m ctx in the callback function that
release the vpu instance, then there is no need
to add lock around releasing m2m ctx.

Fixes: 58303ba94cf5 ("media: amphion: add vpu v4l2 m2m support")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vpu_v4l2.c