]> git.baikalelectronics.ru Git - kernel.git/commit
media: vicodec: check for valid format in v4l2_fwht_en/decode
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Sep 2018 15:00:39 +0000 (11:00 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Sep 2018 13:09:07 +0000 (09:09 -0400)
commit0c2fc2700338528945b7f1bad525cc7cfc26f273
treef9ea4f0170b335cfe68808aa8ca89ccf8cde8449
parent3ee5ef180af058fb11df533e00667fdb012f83d2
media: vicodec: check for valid format in v4l2_fwht_en/decode

These functions did not return an error if state->info was NULL
or an unsupported pixelformat was selected (should not happen,
but just to be on the safe side).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/codec-v4l2-fwht.c
drivers/media/platform/vicodec/codec-v4l2-fwht.h