]> git.baikalelectronics.ru Git - kernel.git/commit
media: amphion: free ctrl handler if error is set and return error
authorMing Qian <ming.qian@nxp.com>
Fri, 22 Apr 2022 01:36:21 +0000 (03:36 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:19 +0000 (11:02 +0200)
commit858c4915a893eda2664cbfe460c9f4d361c01f2b
treeffc518808297a2b237196a7f8c362b8b9fc0c398
parent98381259b4c8f14da31d353537a378f79df9ca2e
media: amphion: free ctrl handler if error is set and return error

The typical behavior is to add all controls, then at the end check if
hdl->error was set, and if so, v4l2_ctrl_handler_free is called and
the error is returned.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vdec.c
drivers/media/platform/amphion/venc.c