]> asedeno.scripts.mit.edu Git - linux.git/commit
media: staging/imx: Fix NULL deref in find_pipeline_entity()
authorSteve Longerbeam <slongerbeam@gmail.com>
Wed, 26 Jun 2019 18:52:25 +0000 (14:52 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 23 Jul 2019 15:42:39 +0000 (11:42 -0400)
commit02c25c003405776084d440c30041a33836b74710
tree4a4597f5310bfb1acbce6a984a77b7861463f279
parent1a03f91c2c2419c3709c4554952c66695575e91c
media: staging/imx: Fix NULL deref in find_pipeline_entity()

Fix a cut&paste error in find_pipeline_entity(). The start entity must be
passed to media_entity_to_video_device() in find_pipeline_entity(), not
pad->entity. The pad is only put to use later, after determining the start
entity is not the entity being searched for.

Fixes: 3ef46bc97ca2 ("media: staging/imx: Improve pipeline searching")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-utils.c