Re: [PATCH v2] media: allegro: add the missed check for v4l2_m2m_ctx_init

2019-12-12 Thread Hans Verkuil
On 12/10/19 4:15 AM, Chuhong Yuan wrote: > allegro_open() misses a check for v4l2_m2m_ctx_init(). > Add a check and error handling code to fix it. > > Fixes: f20387dfd065 ("media: allegro: add Allegro DVT video IP core driver") > Signed-off-by: Chuhong Yuan > --- > Changes in v2: > - Fix the us

[PATCH v2] media: allegro: add the missed check for v4l2_m2m_ctx_init

2019-12-09 Thread Chuhong Yuan
allegro_open() misses a check for v4l2_m2m_ctx_init(). Add a check and error handling code to fix it. Fixes: f20387dfd065 ("media: allegro: add Allegro DVT video IP core driver") Signed-off-by: Chuhong Yuan --- Changes in v2: - Fix the use-after-free in v1. drivers/staging/media/allegro-dvt/a