]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: Check for active and has_no_links overrun
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 5 Oct 2015 15:45:29 +0000 (12:45 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 20:16:14 +0000 (17:16 -0300)
commit1d3ee79580647f165ff75265374e62284c3503af
treee1b0d1f6c32d13202f99eeb0b629b77f502b8077
parent20a21025914d67061a20375bf7d89f217b56e283
[media] media: Check for active and has_no_links overrun

The active and has_no_links arrays will overrun in
media_entity_pipeline_start() if there's an entity which has more than
MEDIA_ENTITY_MAX_PAD pads. Ensure in media_entity_init() that there are
fewer pads than that.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c