]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit885ca801e36d77c2d0025486b178c585a4680a80
treee1b0d1f6c32d13202f99eeb0b629b77f502b8077
parent19fab6fe67d815eb90095e21e3273a1fbe0c8fd9
[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