media: vimc: deb: fix default sink bayer format
authorHelen Fornazier <helen.koike@collabora.com>
Wed, 6 Mar 2019 22:42:37 +0000 (17:42 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 18:04:54 +0000 (14:04 -0400)
commit85ab1aa1fac17bcd79d6d08f835957b46870d0d0
treeb511dfe05c0647139f6551bcd88a1182f383990c
parentf14f6aa0b4423632ab76f3eed3a28159049451ef
media: vimc: deb: fix default sink bayer format

The format of the sink pad should be a bayer mbus format.

This fixes a kernel NULL pointer dereference error that was caused when
the stream starts because the configured format was not found in the
pixelmap table.

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-debayer.c