]> git.baikalelectronics.ru Git - kernel.git/commit
media: replace WARN_ON in __media_pipeline_start()
authorShuah Khan <shuah@kernel.org>
Sat, 23 Feb 2019 00:17:09 +0000 (19:17 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 18:01:08 +0000 (14:01 -0400)
commit00cf85c8f15caa07ec7c906d4e3ef78245ffd57a
tree07fe579cb1f481a854f0d78df9f3de595812cf65
parenteea8fcc52fa256c8e0c9a55cf1bea4275c9c7240
media: replace WARN_ON in __media_pipeline_start()

__media_pipeline_start() does WARN_ON() when active pipe doesn't
match the input arg entity's pipe.

Replace WARN_ON with a conditional and error message that includes
names of both entities.

Signed-off-by: Shuah Khan <shuah@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/media-entity.c