]> git.baikalelectronics.ru Git - kernel.git/commit
media: allegro: add missed checks in allegro_open()
authorChuhong Yuan <hslester96@gmail.com>
Mon, 13 Jan 2020 05:59:51 +0000 (06:59 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 15:43:20 +0000 (16:43 +0100)
commit081ccce9f371911aa891303c2b29be2fb22402fd
tree6291f9392ea78e617cc0a24157ab3f57873a4586
parent684499f88790eeb4012992c2b6ea2c4219d66e73
media: allegro: add missed checks in allegro_open()

allegro_open() misses checks for v4l2_m2m_ctx_init() and results of
v4l2_ctrl_new* calls.
Add checks and error handlers to fix the problems.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c