aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/aspeed-video.c
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2020-12-09 17:15:10 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-11 11:59:45 +0100
commitcbe8373ca7e7cbb4b263b6bf222ccc19f5e119d2 (patch)
treee0b6c3b510832e48a97700c2f967a69ed8d5b528 /drivers/media/platform/aspeed-video.c
parentmedia: b2c2: remove trailing semicolon in macro definition (diff)
downloadlinux-dev-cbe8373ca7e7cbb4b263b6bf222ccc19f5e119d2.tar.xz
linux-dev-cbe8373ca7e7cbb4b263b6bf222ccc19f5e119d2.zip
media: rkisp1: rsz: crash fix when setting src format
When setting the source media bus code in the resizer, we first check that the current media bus code in the source is yuv encoded format. This is done by retrieving the data from the formats list of the isp entity. This cause a crash when the media bus code on the source is YUYV8_1_5X8 which is not supported by the isp entity. Instead we should test the sink format of the resizer which is guaranteed to be supported by the isp entity. Fixes: 251b6eebb6c49 ("media: staging: rkisp1: rsz: Add support to more YUV encoded mbus codes on src pad") Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Acked-by: Helen Koike <helen.koike@collabora.com> Tested-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/aspeed-video.c')
0 files changed, 0 insertions, 0 deletions