]> git.baikalelectronics.ru Git - kernel.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)
commit5a6dc587ec1258be644f2e0ec0bd99cd850493dc
tree4a4597f5310bfb1acbce6a984a77b7861463f279
parentf2f5dc3edbab6286d8661bbe79fc260154a682c8
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: 43470037812b ("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